PHP Класс Turba_Driver_Group, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (ASL). If you did did not receive this file, see http://www.horde.org/licenses/apache.
Автор: Michael J. Rubinsky ([email protected])
Наследование: extends Turba_Driver
Показать файл Открыть проект

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

Метод Описание
__construct ( string $name = '', array $params = [] ) Constructor function.
hasPermission ( integer $perm ) : boolean Checks if the current user has the requested permissions on this source. This source is always read only.

Защищенные методы

Метод Описание
_getAddressBook ( ) TODO
_read ( string $key, mixed $ids, string $owner, array $fields, array $blobFields = [], array $dateFields = [] ) : array Reads the given data from the address book and returns the results.
_search ( array $criteria, array $fields, array $blobFields = [], $count_only = false ) : array Searches the group list with the given criteria and returns a filtered list of results. If the criteria parameter is an empty array, all records will be returned.

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

__construct() публичный Метод

Constructor function.
public __construct ( string $name = '', array $params = [] )
$name string Source name
$params array Hash containing additional configuration parameters.

_getAddressBook() защищенный Метод

TODO
protected _getAddressBook ( )

_read() защищенный Метод

Reads the given data from the address book and returns the results.
protected _read ( string $key, mixed $ids, string $owner, array $fields, array $blobFields = [], array $dateFields = [] ) : array
$key string The primary key field to use.
$ids mixed The ids of the contacts to load.
$owner string Only return contacts owned by this user.
$fields array List of fields to return.
$blobFields array Array of fields containing binary data.
$dateFields array Array of fields containing date data. @since 4.2.0
Результат array Hash containing the search results.

hasPermission() публичный Метод

Checks if the current user has the requested permissions on this source. This source is always read only.
public hasPermission ( integer $perm ) : boolean
$perm integer The permission to check for.
Результат boolean True if the user has permission, otherwise false.