PHP 클래스 Horde_Core_Prefs_Ui, horde

See Horde_Registry_Application for a summary of the API callbacks that are available. Session variables set (stored in 'horde_prefs'): 'advanced' - (boolean) If true, display advanced prefs.
저자: Chuck Hagenbuch ([email protected])
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$app string Current application.
$group string Current preferences group.
$nobuttons boolean If set, suppresses display of the buttons.
$prefGroups array Preferences groups.
$prefs array Preferences.
$suppress array Suppressed preference entries.
$suppressGroups array Suppressed prefGroup entries.
$vars Horde_Variables Form variables for this page load.

보호된 프로퍼티들

프로퍼티 타입 설명
$_errors array List of update errors.

공개 메소드들

메소드 설명
__construct ( Horde_Variables $vars ) Constructor.
generateUI ( ) Generate the UI for the preferences interface, either for a specific group, or the group selection interface.
getChangeablePrefs ( string $group = null ) : array Returns the list of changeable prefs for a group.
getDefaultApp ( ) : string Get the default application to show preferences for. Defaults to 'horde'.
groupIsEditable ( string $group ) : boolean Determine whether or not a preferences group is editable.
handleForm ( ) Handle a preferences form submission if there is one, updating any preferences which have been changed.
hasAdvancedPrefs ( ) : boolean Returns whether advanced preferences exist in the current application.
selfUrl ( array $options = [] ) : Horde_Url Returns a self URL to the current page.

보호된 메소드들

메소드 설명
_addHordeIdentitiesPrefs ( array $pref_list ) : array Adds Horde base identities prefs to preference list.
_generateEntry ( string $member, mixed $val ) : array Generates an entry hash for an identity's preference value.
_getPrefGroups ( ) : array Get the list of viewable preference groups, filtering out suppressed groups and groups with no settable prefs.
_handleForm ( $preflist, $save ) * Handle a preferences form submission if there is one, updating any preferences which have been changed.
_identitiesUpdate ( ) Update identities prefs.
_identityHeader ( array $members ) : string Output the identities page header entries (default identity, identity selection, and identity deletion).
_loadPrefs ( string $app, boolean $data = false ) Parses/loads preferences configuration.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Variables $vars )
$vars Horde_Variables Form variables.

_addHordeIdentitiesPrefs() 보호된 메소드

Adds Horde base identities prefs to preference list.
protected _addHordeIdentitiesPrefs ( array $pref_list ) : array
$pref_list array Preference list.
리턴 array The preference list with the Horde preferences added, if needed. These prefs are also added to $this->prefs.

_generateEntry() 보호된 메소드

Generates an entry hash for an identity's preference value.
protected _generateEntry ( string $member, mixed $val ) : array
$member string A preference name.
$val mixed A preference value.
리턴 array An array with preference name, type, and value.

_getPrefGroups() 보호된 메소드

Get the list of viewable preference groups, filtering out suppressed groups and groups with no settable prefs.
protected _getPrefGroups ( ) : array
리턴 array The filtered prefGroups array.

_handleForm() 보호된 메소드

* Handle a preferences form submission if there is one, updating any preferences which have been changed.
protected _handleForm ( $preflist, $save )
$preflist The list of preferences to process.
$save The object to save preferences values to.

_identitiesUpdate() 보호된 메소드

Update identities prefs.
protected _identitiesUpdate ( )

_identityHeader() 보호된 메소드

Output the identities page header entries (default identity, identity selection, and identity deletion).
protected _identityHeader ( array $members ) : string
$members array The list of prefs to display on this page.
리턴 string HTML output.

_loadPrefs() 보호된 메소드

Parses/loads preferences configuration.
protected _loadPrefs ( string $app, boolean $data = false )
$app string The application.
$data boolean Return the data instead of loading into the current object?

generateUI() 공개 메소드

Generate the UI for the preferences interface, either for a specific group, or the group selection interface.
public generateUI ( )

getChangeablePrefs() 공개 메소드

Returns the list of changeable prefs for a group.
public getChangeablePrefs ( string $group = null ) : array
$group string The preferences group to check.
리턴 array The list of changeable prefs.

getDefaultApp() 공개 메소드

Get the default application to show preferences for. Defaults to 'horde'.
public getDefaultApp ( ) : string
리턴 string The default application.

groupIsEditable() 공개 메소드

Determine whether or not a preferences group is editable.
public groupIsEditable ( string $group ) : boolean
$group string The preferences group to check.
리턴 boolean Whether or not the group is editable.

handleForm() 공개 메소드

Handle a preferences form submission if there is one, updating any preferences which have been changed.
public handleForm ( )

hasAdvancedPrefs() 공개 메소드

Returns whether advanced preferences exist in the current application.
public hasAdvancedPrefs ( ) : boolean
리턴 boolean True if at least one of the preferences is an advanced preference.

selfUrl() 공개 메소드

Returns a self URL to the current page.
public selfUrl ( array $options = [] ) : Horde_Url
$options array Additional options:
'special' - (boolean) If set, will trigger special action update
            processing when the URL is loaded.
'token' - (boolean) If set, includes the form token in the URL.
리턴 Horde_Url The URL object.

프로퍼티 상세

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

List of update errors.
protected array $_errors
리턴 array

$app 공개적으로 프로퍼티

Current application.
public string $app
리턴 string

$group 공개적으로 프로퍼티

Current preferences group.
public string $group
리턴 string

$nobuttons 공개적으로 프로퍼티

If set, suppresses display of the buttons.
public bool $nobuttons
리턴 boolean

$prefGroups 공개적으로 프로퍼티

Preferences groups.
public array $prefGroups
리턴 array

$prefs 공개적으로 프로퍼티

Preferences.
public array $prefs
리턴 array

$suppress 공개적으로 프로퍼티

Suppressed preference entries.
public array $suppress
리턴 array

$suppressGroups 공개적으로 프로퍼티

Suppressed prefGroup entries.
public array $suppressGroups
리턴 array

$vars 공개적으로 프로퍼티

Form variables for this page load.
public Horde_Variables $vars
리턴 Horde_Variables