Create a new Turba share.
mixed
&createShare
(string $share_id, array $params)
-
string
$share_id: The id for the new share.
-
array
$params: Parameters for the new share.
Checks for any maintenance to run
mixed
doMaintenance
()
void
formatEmailAddresses
( $data, $name)
Formats the name according to the user's preference.
string
formatName
(
Turba_Object $ob, [
string $name_format =
null])
-
Turba_Object
$ob: The object to get a name from.
-
string
$name_format: The formatting. One of 'none', 'last_first' or 'first_last'.
Get the order the user selected for displaying address books.
array
getAddressBookOrder
()
Get all the address books the user has the requested permissions to and return them in the user's preferred order.
array
getAddressBooks
([integer $permission = PERMS_READ], [array $options = array()])
-
integer
$permission: The PERMS_* constant to filter on.
-
array
$options: Any additional options.
Retrieves a column's field name
void
getColumnName
( $i, $columns)
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 (basically, a SQL driver source for now). Any backend that supports ACLs or similar mechanism should be configured from within sources.php or _horde_hook_share_* calls.
array
getConfigFromShares
(array $sources)
-
array
$sources: The default $cfgSources array.
Returns the current user's default address book.
string
getDefaultAddressBook
()
Gets extended permissions on an address book.
mixed
getExtendedPermission
(
Turba_Driver $addressBook,
string $permission)
-
Turba_Driver
$addressBook: The address book to get extended permissions for.
-
string
$permission: What extended permission to get.
Build Turba's list of menu items.
void
getMenu
([ $returnType = 'object'])
Returns the sort order selected by the user
void
getPreferredSortOrder
()
Retrieve a new source config entry based on a Turba share.
void
getSourceFromShare
(Horde_Share &$share)
-
Horde_Share
&$share: object The share to base config on.
Returns the real name, if available, of a user.
void
getUserName
( $uid)
Returns a best guess at the lastname in a string.
string
guessLastname
(string $name)
-
string
$name: String contain the full name.
Returns all shares the current user has specified permissions to.
array
listShares
([boolean $owneronly = false], [integer $permission = PERMS_READ])
-
boolean
$owneronly: Only return address books owned by the user? Defaults to false.
-
integer
$permission: Permissions to filter by.
Filters data based on permissions.
array
permissionsFilter
(array $in, [integer $permission = PERMS_READ], [array $options = array()], string $filter)
-
array
$in: The data we want filtered.
-
string
$filter: What type of data we are filtering.
-
integer
$permission: The PERMS_* constant we will filter on.
-
array
$options: Additional options.