Property | Type | Description | |
---|---|---|---|
$_corePerms | Horde_Core_Perms | The Horde_Core_Perms object we're displaying UI stuff for. | |
$_form | Horde_Form | The Horde_Form object that will be used for displaying the edit form. | |
$_perms | Horde_Perms_Base | The Horde_Perms object we're displaying UI stuff for. | |
$_type | string | The permission type. | |
$_vars | Horde_Variables | The Horde_Variables object used in Horde_Form. |
Method | Description | |
---|---|---|
__construct ( Horde_Perms_Base $perms, Horde_Core_Perms $corePerms ) | Constructor. | |
renderForm ( $form_script = 'edit.php' ) | Renders the edit form. | |
renderTree ( $current = Horde_Perms::ROOT ) : string | Return a Horde_Tree representation of the permissions tree. | |
setForm ( Horde_Form &$form ) | Set an existing form object to use for the edit form. | |
setVars ( Horde_Variables $vars ) | Set an existing vars object to use for the edit form. | |
setupAddForm ( Horde_Perms_Permission $permission, string $force_choice = null ) | Create a form to add a permission. | |
setupDeleteForm ( Horde_Perms_Permission $permission ) | Create a permission deleting form. | |
setupEditForm ( Horde_Perms_Permission $permission ) | Create a permission editing form. | |
validateAddForm ( &$info ) : mixed | Function to validate any add form input. | |
validateDeleteForm ( TODO &$info ) : mixed | Function to validate any delete form input. | |
validateEditForm ( &$info ) : mixed | Function to validate any edit form input. |
Method | Description | |
---|---|---|
_formInit ( ) | Creates any form objects if they have not been initialised yet. |
public __construct ( Horde_Perms_Base $perms, Horde_Core_Perms $corePerms ) | ||
$perms | Horde_Perms_Base | The object to display UI stuff for. |
$corePerms | Horde_Core_Perms |
protected _formInit ( ) |
public renderTree ( $current = Horde_Perms::ROOT ) : string | ||
return | string | The html showing the permissions as a Horde_Tree. |
public setForm ( Horde_Form &$form ) | ||
$form | Horde_Form | An existing Horde_Form object to use. |
public setVars ( Horde_Variables $vars ) | ||
$vars | Horde_Variables | An existing Horde_Variables object to use. |
public setupAddForm ( Horde_Perms_Permission $permission, string $force_choice = null ) | ||
$permission | Horde_Perms_Permission | Permission |
$force_choice | string | If the permission to be added can be one of many, setting this will force the choice to one particular. |
public setupDeleteForm ( Horde_Perms_Permission $permission ) | ||
$permission | Horde_Perms_Permission | A permissions object. |
public setupEditForm ( Horde_Perms_Permission $permission ) | ||
$permission | Horde_Perms_Permission | TODO |
public validateAddForm ( &$info ) : mixed | ||
return | mixed | Either false if the form does not validate correctly or an array with all the form values. |
public validateDeleteForm ( TODO &$info ) : mixed | ||
$info | TODO | TODO |
return | mixed | If the delete button confirmation has been pressed return true, if any other submit button has been pressed return false. If form did not validate return null. |
public validateEditForm ( &$info ) : mixed | ||
return | mixed | Either false if the form does not validate correctly or an array with all the form values. |
protected Horde_Core_Perms $_corePerms | ||
return | Horde_Core_Perms |
protected Horde_Form $_form | ||
return | Horde_Form |
protected Horde_Perms_Base $_perms | ||
return | Horde_Perms_Base |