PHP Класс Horde_Core_Prefs_Ui_Widgets, horde

Copyright 2010-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.
Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addressbooks ( array $data ) : string Create code needed for addressbook selection.
addressbooksInit ( ) Code to run on init for addressbook selection.
addressbooksUpdate ( Horde_Core_Prefs_Ui $ui ) : array Process form data for address book selection.
alarm ( array $data ) : string Create code needed for alarm selection.
alarmInit ( ) Code to run on init for alarms selection.
alarmUpdate ( Horde_Core_Prefs_Ui $ui, array $data ) : array Process form data for alarm selection.
source ( array $data ) : string Create code needed for source selection.
sourceInit ( ) Code to run on init.
sourceUpdate ( Horde_Core_Prefs_Ui $ui ) : array Process form data for source selection.

Описание методов

addressbooks() публичный статический Метод

Create code needed for addressbook selection.
public static addressbooks ( array $data ) : string
$data array Data items:
'fields' - (array) Hash containing addressbook sources as keys and an
           array of search fields as values.
'sources' - (array) List of selected addressbooks.
Результат string HTML UI code.

addressbooksInit() публичный статический Метод

Code to run on init for addressbook selection.
public static addressbooksInit ( )

addressbooksUpdate() публичный статический Метод

Process form data for address book selection.
public static addressbooksUpdate ( Horde_Core_Prefs_Ui $ui ) : array
$ui Horde_Core_Prefs_Ui The UI object.
Результат array Array with two possible keys: sources and fields. Sources contains the list of selected addressbooks (JSON encoded). Fields contains a hash containing sources as keys and an array of search fields as the value.

alarm() публичный статический Метод

Create code needed for alarm selection.
public static alarm ( array $data ) : string
$data array Data items: - 'helplink': (string) [OPTIONAL] Help link. - 'label': (string) Label. - 'pref': (string) Preference name. - 'value': (array) [OPTIONAL] Preference value.
Результат string HTML UI code.

alarmInit() публичный статический Метод

Code to run on init for alarms selection.
public static alarmInit ( )

alarmUpdate() публичный статический Метод

Process form data for alarm selection.
public static alarmUpdate ( Horde_Core_Prefs_Ui $ui, array $data ) : array
$ui Horde_Core_Prefs_Ui The UI object.
$data array Data items:
'pref' - (string) Preference name.
Результат array TODO

source() публичный статический Метод

Create code needed for source selection.
public static source ( array $data ) : string
$data array Data items:
'mainlabel' - (string) Main label.
'no_up' - (boolean) [OPTIONAL] Disable movement of selected items
          up/down.
'selectlabel' - (array) Selected label.
'sourcelabel' - (string) [OPTIONAL] Source selection label.
'sources' - (array) List of sources - keys are source names. Each
            source is an array with the entries: 'label', 'selected' and
            'unselected'.
'unselectlabel' - (array) Unselected label.
Результат string HTML UI code.

sourceInit() публичный статический Метод

Code to run on init.
public static sourceInit ( )

sourceUpdate() публичный статический Метод

Process form data for source selection.
public static sourceUpdate ( Horde_Core_Prefs_Ui $ui ) : array
$ui Horde_Core_Prefs_Ui The UI object.
Результат array If only one source was originally given, contains the list of selected values (JSON encoded). If multiple sources were given, this variable will contain a list of arrays; each subarray contains the source name and the list of selected values (JSON encoded).