PHP 클래스 Horde_Core_Perms_Ui, horde

Copyright 2001-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Chuck Hagenbuch ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
_formInit ( ) Creates any form objects if they have not been initialised yet.

메소드 상세

__construct() 공개 메소드

Constructor.
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

_formInit() 보호된 메소드

Creates any form objects if they have not been initialised yet.
protected _formInit ( )

renderForm() 공개 메소드

Renders the edit form.
public renderForm ( $form_script = 'edit.php' )

renderTree() 공개 메소드

Return a Horde_Tree representation of the permissions tree.
public renderTree ( $current = Horde_Perms::ROOT ) : string
리턴 string The html showing the permissions as a Horde_Tree.

setForm() 공개 메소드

Set an existing form object to use for the edit form.
public setForm ( Horde_Form &$form )
$form Horde_Form An existing Horde_Form object to use.

setVars() 공개 메소드

Set an existing vars object to use for the edit form.
public setVars ( Horde_Variables $vars )
$vars Horde_Variables An existing Horde_Variables object to use.

setupAddForm() 공개 메소드

Create a form to add a permission.
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.

setupDeleteForm() 공개 메소드

Create a permission deleting form.
public setupDeleteForm ( Horde_Perms_Permission $permission )
$permission Horde_Perms_Permission A permissions object.

setupEditForm() 공개 메소드

Create a permission editing form.
public setupEditForm ( Horde_Perms_Permission $permission )
$permission Horde_Perms_Permission TODO

validateAddForm() 공개 메소드

Function to validate any add form input.
public validateAddForm ( &$info ) : mixed
리턴 mixed Either false if the form does not validate correctly or an array with all the form values.

validateDeleteForm() 공개 메소드

Function to validate any delete form input.
public validateDeleteForm ( TODO &$info ) : mixed
$info TODO TODO
리턴 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.

validateEditForm() 공개 메소드

Function to validate any edit form input.
public validateEditForm ( &$info ) : mixed
리턴 mixed Either false if the form does not validate correctly or an array with all the form values.

프로퍼티 상세

$_corePerms 보호되어 있는 프로퍼티

The Horde_Core_Perms object we're displaying UI stuff for.
protected Horde_Core_Perms $_corePerms
리턴 Horde_Core_Perms

$_form 보호되어 있는 프로퍼티

The Horde_Form object that will be used for displaying the edit form.
protected Horde_Form $_form
리턴 Horde_Form

$_perms 보호되어 있는 프로퍼티

The Horde_Perms object we're displaying UI stuff for.
protected Horde_Perms_Base $_perms
리턴 Horde_Perms_Base

$_type 보호되어 있는 프로퍼티

The permission type.
protected string $_type
리턴 string

$_vars 보호되어 있는 프로퍼티

The Horde_Variables object used in Horde_Form.
protected Horde_Variables $_vars
리턴 Horde_Variables