\Ulaform

The Ulaform:: class providing some support functions to the Ulaform module.

Copyright 2001-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
getActionInfo()
getActionParams()
getFieldTypes()
getFieldTypesArray()
getFieldParams()
getStringlistArray()
checkPermissions()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getActionInfo()

getActionInfo(  $action) 

Parameters

$action

getActionParams()

getActionParams(  $action) 

Parameters

$action

getFieldTypes()

getFieldTypes() : array

Fetch the available field types from the Horde_Form classes.

Returns

array —

The available field types.

getFieldTypesArray()

getFieldTypesArray() : array

Fetch the full array for the field types, with params.

Returns

array —

The full field types array.

getFieldParams()

getFieldParams(  $field_type) 

Parameters

$field_type

getStringlistArray()

getStringlistArray(  $string) 

Parameters

$string

checkPermissions()

checkPermissions(mixed  $in, string  $filter, string  $permission = \Horde_Perms::READ, string  $key = null) : mixed

This function does the permission checking when using Ulaform.

Parameters

mixed $in

A form_id or an array of form_id's to check permission on.

string $filter

What type of check to do.

string $permission

What type of permission to check for.

string $key

The array key to use for checking.

Returns

mixed —

Depending on the type of check, either return a boolean to indicate permission for that form, or a filtered out array of form_id's.