Свойство | Тип | Описание | |
---|---|---|---|
$source | string | The current source. |
Свойство | Тип | Описание | |
---|---|---|---|
$_cache | array | Cached data. |
Метод | Описание | |
---|---|---|
addBrowseJs ( ) | Add browse.js javascript to page. | |
availableSources ( ) : array | Returns the source entries from config/backends.php that have been configured as available sources in the main Turba configuration. | |
createShare ( string $share_name, array $params ) : Horde_Share | Create a new Turba share. | |
formatCompositeField ( string $format, array $fields ) : string | Builds and cleans up a composite field. | |
formatEmailAddresses ( mixed $data, string $name ) : mixed | TODO | |
formatName ( Turba_Object $ob, string $name_format = null ) : string | Formats the name according to the user's preference. | |
getAddressBooks ( integer $permission = Horde_Perms::READ, array $options = [] ) : array | Get all the address books the user has the requested permissions to and return them in the user's preferred order. | |
getAvailableEmailFields ( $source = null, $searchable = true ) : array | Return an array of all available attributes of type 'email'. Optionally, ensure the field is defined in the specified $source. | |
getColumnName ( integer $i, array $columns ) : string | Retrieves a column's field name. | |
getColumns ( ) | TODO | |
getConfigFromShares ( array $sources, boolean $owner = false ) : array | Replaces all share-enabled sources in a source list with all shares from this source that the current user has access to. | |
getDefaultAddressbook ( ) : string | Returns the current user's default address book. | |
getExtendedPermission ( Turba_Driver $addressBook, string $permission ) : mixed | Gets extended permissions on an address book. | |
getPreferredSortOrder ( ) : array | Returns the sort order selected by the user. | |
getSourceFromShare ( Horde_Share_Object $share ) : array | Retrieve a new source config entry based on a Turba share. | |
getUserName ( string $uid ) : string | Returns the real name, if available, of a user. | |
guessLastname ( string $name ) : string | Returns a best guess at the lastname in a string. | |
hasMaxContacts ( Turba_Driver $driver, boolean $notify = true ) : string | Checks the max_contacts permission. | |
listShares ( boolean $owneronly = false, integer $permission = Horde_Perms::READ ) : array | Returns all shares the current user has specified permissions to. | |
permissionsFilter ( array $in, integer $permission = Horde_Perms::READ, array $options = [] ) : array | Filters sources based on permissions. | |
setPreferredSortOrder ( Horde_Variables $vars, string $source ) | Saves the sort order to the preferences backend. |
public static addBrowseJs ( ) |
public static availableSources ( ) : array | ||
Результат | array | List of available sources. |
public static formatName ( Turba_Object $ob, string $name_format = null ) : string | ||
$ob | Turba_Object | The object to get a name from. |
$name_format | string | The formatting. One of 'none', 'last_first' or 'first_last'. Defaults to the user preference. |
Результат | string | The formatted name, either "Firstname Lastname" or "Lastname, Firstname" depending on $name_format or the user's preference. |
public static getAvailableEmailFields ( $source = null, $searchable = true ) : array | ||
$source | string An optional source identifier. | |
$searchable | boolean If true, and $source is provided, ensure that the email field is a configured searchable field. | |
Результат | array | An array of email fields. |
public static getDefaultAddressbook ( ) : string | ||
Результат | string | The default address book name. |
public static getExtendedPermission ( Turba_Driver $addressBook, string $permission ) : mixed | ||
$addressBook | Turba_Driver | The address book to get extended permissions for. |
$permission | string | What extended permission to get. |
Результат | mixed | The requested extended permissions value, or true if it doesn't exist. |
public static getPreferredSortOrder ( ) : array | ||
Результат | array | TODO |
public static getUserName ( string $uid ) : string | ||
$uid | string | The uid of the name to return. |
Результат | string | The user's full, real name. |
public static guessLastname ( string $name ) : string | ||
$name | string | String contain the full name. |
Результат | string | String containing the last name. |
public static hasMaxContacts ( Turba_Driver $driver, boolean $notify = true ) : string | ||
$driver | Turba_Driver | The address book to check. |
$notify | boolean | If true, outputs error to notification. |
Результат | string | Error message if maximum contacts have been reached. False otherwise. |
public static permissionsFilter ( array $in, integer $permission = Horde_Perms::READ, array $options = [] ) : array | ||
$in | array | The source list we want filtered. |
$permission | integer | The Horde_Perms::* constant we will filter on. |
$options | array | Additional options: - require_add: (boolean) Only return sources that can be added to. |
Результат | array | The filtered data. |
public static setPreferredSortOrder ( Horde_Variables $vars, string $source ) | ||
$vars | Horde_Variables | Variables object. |
$source | string | Source. |
public static string $source | ||
Результат | string |