IContactsStore.php 566 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace OCP\Contacts\ContactsMenu;
  3. use OCP\IUser;
  4. /**
  5. * @since 13.0.0
  6. */
  7. interface IContactsStore {
  8. /**
  9. * @param IUser $user
  10. * @param $filter
  11. * @return IEntry[]
  12. * @since 13.0.0
  13. */
  14. public function getContacts(IUser $user, $filter);
  15. /**
  16. * @brief finds a contact by specifying the property to search on ($shareType) and the value ($shareWith)
  17. * @param IUser $user
  18. * @param integer $shareType
  19. * @param string $shareWith
  20. * @return IEntry|null
  21. * @since 13.0.0
  22. */
  23. public function findOne(IUser $user, $shareType, $shareWith);
  24. }