PHP Class 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.
Author: Chuck Hagenbuch ([email protected])
Author: Michael Slusarz ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$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.

Protected Properties

Свойство Type Description
$_errors array List of update errors.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
_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.

Method Details

__construct() public méthode

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

_addHordeIdentitiesPrefs() protected méthode

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

_generateEntry() protected méthode

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.
Résultat array An array with preference name, type, and value.

_getPrefGroups() protected méthode

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

_handleForm() protected méthode

* 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() protected méthode

Update identities prefs.
protected _identitiesUpdate ( )

_identityHeader() protected méthode

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.
Résultat string HTML output.

_loadPrefs() protected méthode

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() public méthode

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

getChangeablePrefs() public méthode

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

getDefaultApp() public méthode

Get the default application to show preferences for. Defaults to 'horde'.
public getDefaultApp ( ) : string
Résultat string The default application.

groupIsEditable() public méthode

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

handleForm() public méthode

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

hasAdvancedPrefs() public méthode

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

selfUrl() public méthode

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.
Résultat Horde_Url The URL object.

Property Details

$_errors protected_oe property

List of update errors.
protected array $_errors
Résultat array

$app public_oe property

Current application.
public string $app
Résultat string

$group public_oe property

Current preferences group.
public string $group
Résultat string

$nobuttons public_oe property

If set, suppresses display of the buttons.
public bool $nobuttons
Résultat boolean

$prefGroups public_oe property

Preferences groups.
public array $prefGroups
Résultat array

$prefs public_oe property

Preferences.
public array $prefs
Résultat array

$suppress public_oe property

Suppressed preference entries.
public array $suppress
Résultat array

$suppressGroups public_oe property

Suppressed prefGroup entries.
public array $suppressGroups
Résultat array

$vars public_oe property

Form variables for this page load.
public Horde_Variables $vars
Résultat Horde_Variables