PHP Class Ulaform, horde

Copyright 2001-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Author: Marko Djukic ([email protected])
Author: Brent J. Nordquist ([email protected])
显示文件 Open project: horde/horde Class Usage Examples

Public Methods

Method Description
checkPermissions ( mixed $in, string $filter, string $permission = Horde_Perms::READ, string $key = null ) : mixed This function does the permission checking when using Ulaform.
getActionInfo ( $action )
getActionParams ( $action )
getFieldParams ( $field_type )
getFieldTypes ( ) : array Fetch the available field types from the Horde_Form classes.
getFieldTypesArray ( ) : array Fetch the full array for the field types, with params.
getStringlistArray ( $string )

Method Details

checkPermissions() public static method

This function does the permission checking when using Ulaform.
public static checkPermissions ( mixed $in, string $filter, string $permission = Horde_Perms::READ, string $key = null ) : mixed
$in mixed A form_id or an array of form_id's to check permission on.
$filter string What type of check to do.
$permission string What type of permission to check for.
$key string The array key to use for checking.
return 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.

getActionInfo() public static method

public static getActionInfo ( $action )

getActionParams() public static method

public static getActionParams ( $action )

getFieldParams() public static method

public static getFieldParams ( $field_type )

getFieldTypes() public static method

Fetch the available field types from the Horde_Form classes.
public static getFieldTypes ( ) : array
return array The available field types.

getFieldTypesArray() public static method

Fetch the full array for the field types, with params.
public static getFieldTypesArray ( ) : array
return array The full field types array.

getStringlistArray() public static method

public static getStringlistArray ( $string )