PHP 클래스 Turba_Driver_Favourites, 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.
저자: Jan Schneider ([email protected])
상속: extends Turba_Driver
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
hasPermission ( integer $perm ) : boolean Checks if the current user has the requested permissions on this source.
removeUserData ( string $user ) : boolean Always returns true because the driver is read-only and there is nothing to remove.

보호된 메소드들

메소드 설명
_getAddressBook ( ) TODO
_match ( array $contact, array $val ) : boolean Returns whether a contact matches some criteria.
_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 favourites 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.

메소드 상세

_getAddressBook() 보호된 메소드

TODO
protected _getAddressBook ( )

_match() 보호된 메소드

Returns whether a contact matches some criteria.
protected _match ( array $contact, array $val ) : boolean
$contact array A contact hash.
$val array Some matching criterion, see _search().
리턴 boolean True if the contact matches.

_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.
public hasPermission ( integer $perm ) : boolean
$perm integer The permission to check for.
리턴 boolean True if the user has permission, otherwise false.

removeUserData() 공개 메소드

Always returns true because the driver is read-only and there is nothing to remove.
public removeUserData ( string $user ) : boolean
$user string The user's data to remove.
리턴 boolean Always true.