sourceInit()
sourceInit()
Code to run on init.
Collection of prefs UI widgets for use with application-specific (a/k/a 'special') configuration.
Copyright 2010-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
source(array $data) : string
Create code needed for source selection.
array | $data | 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. |
HTML UI code.
sourceUpdate(\Horde_Core_Prefs_Ui $ui) : array
Process form data for source selection.
\Horde_Core_Prefs_Ui | $ui | The UI object. |
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).
addressbooks(array $data) : string
Create code needed for addressbook selection.
array | $data | Data items: 'fields' - (array) Hash containing addressbook sources as keys and an array of search fields as values. 'sources' - (array) List of selected addressbooks. |
HTML UI code.
addressbooksUpdate(\Horde_Core_Prefs_Ui $ui) : array
Process form data for address book selection.
\Horde_Core_Prefs_Ui | $ui | The UI object. |
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.
alarmUpdate(\Horde_Core_Prefs_Ui $ui, array $data) : array
Process form data for alarm selection.
\Horde_Core_Prefs_Ui | $ui | The UI object. |
array | $data | Data items: 'pref' - (string) Preference name. |
TODO