VFS_PATH
VFS_PATH
The virtual path to use for VFS data.
Turba Base Class.
getAddressBooks(integer $permission = \Horde_Perms::READ, array $options = array()) : array
Get all the address books the user has the requested permissions to and return them in the user's preferred order.
integer | $permission | The Horde_Perms::* constant to filter on. |
array | $options | Any additional options. |
The filtered, ordered $cfgSources entries.
formatName(\Turba_Object $ob, string $name_format = null) : string
Formats the name according to the user's preference.
If the format is 'none', the full name with all parts is returned. If the format is 'last_first' or 'first_last', only the first name and last name are returned.
\Turba_Object | $ob | The object to get a name from. |
string | $name_format | The formatting. One of 'none', 'last_first' or 'first_last'. Defaults to the user preference. |
The formatted name, either "Firstname Lastname" or "Lastname, Firstname" depending on $name_format or the user's preference.
getExtendedPermission(\Turba_Driver $addressBook, string $permission) : mixed
Gets extended permissions on an address book.
\Turba_Driver | $addressBook | The address book to get extended permissions for. |
string | $permission | What extended permission to get. |
The requested extended permissions value, or true if it doesn't exist.
hasMaxContacts(\Turba_Driver $driver, boolean $notify = true) : string
Checks the max_contacts permission.
\Turba_Driver | $driver | The address book to check. |
boolean | $notify | If true, outputs error to notification. |
Error message if maximum contacts have been reached. False otherwise.
permissionsFilter(array $in, integer $permission = \Horde_Perms::READ, array $options = array()) : array
Filters sources based on permissions.
array | $in | The source list we want filtered. |
integer | $permission | The Horde_Perms::* constant we will filter on. |
array | $options | Additional options:
|
The filtered data.
getConfigFromShares(array $sources, boolean $owner = false, array $options = array()) : array
Replaces all share-enabled sources in a source list with all shares from this source that the current user has access to.
This will only sync shares that are unique to Horde (such as a SQL or Kolab sources). Any backend that supports ACLs or similar mechanism should be configured from within backends.local.php or via Horde's share_* hooks.
array | $sources | The default $cfgSources array. |
boolean | $owner | Only return shares that the current user owns? |
array | $options | An array of options:
|
The $cfgSources array.
listShares(boolean $owneronly = false, integer $permission = \Horde_Perms::READ) : array
Returns all shares the current user has specified permissions to.
boolean | $owneronly | Only return address books owned by the user? Defaults to false. |
integer | $permission | Permissions to filter by. |
Shares the user has the requested permissions to.
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.
$source | string An optional source identifier. |
|
$searchable | boolean If true, and $source is provided, ensure that the email field is a configured searchable field. |
An array of email fields.