2017-09-16 11:42:46 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCP\Contacts\ContactsMenu;
|
|
|
|
|
|
|
|
use OCP\IUser;
|
|
|
|
|
2017-10-01 07:15:30 +00:00
|
|
|
/**
|
|
|
|
* @since 13.0.0
|
|
|
|
*/
|
2017-09-16 11:42:46 +00:00
|
|
|
interface IContactsStore {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param IUser $user
|
|
|
|
* @param $filter
|
|
|
|
* @return IEntry[]
|
2017-10-01 07:15:30 +00:00
|
|
|
* @since 13.0.0
|
2017-09-16 11:42:46 +00:00
|
|
|
*/
|
|
|
|
public function getContacts(IUser $user, $filter);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief finds a contact by specifying the property to search on ($shareType) and the value ($shareWith)
|
|
|
|
* @param IUser $user
|
|
|
|
* @param integer $shareType
|
|
|
|
* @param string $shareWith
|
|
|
|
* @return IEntry|null
|
2017-10-01 07:15:30 +00:00
|
|
|
* @since 13.0.0
|
2017-09-16 11:42:46 +00:00
|
|
|
*/
|
|
|
|
public function findOne(IUser $user, $shareType, $shareWith);
|
|
|
|
|
2017-10-01 07:15:30 +00:00
|
|
|
}
|