searchRestrictKolab() public méthode

Restrict a search to KolabInetOrgPersons.
public searchRestrictKolab ( Horde_Kolab_Server_Query_Element_Interface $criteria ) : array
$criteria Horde_Kolab_Server_Query_Element_Interface The search criteria.
Résultat array The GUID(s).
 /**
  * Return all KolabInetOrgPersons with the given mail or alias address.
  *
  * @param string $mail  The mail address to search for.
  * @param string $alias The alias address to search for.
  *
  * @return array The GUID(s).
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function searchGuidForMailOrAlias($mail, $alias)
 {
     $criteria = new Horde_Kolab_Server_Query_Element_Or(new Horde_Kolab_Server_Query_Element_Equals('Mail', $mail), new Horde_Kolab_Server_Query_Element_Equals('Alias', $alias));
     return parent::searchRestrictKolab($criteria);
 }
Exemple #2
0
 /**
  * Return all KolabInetOrgPersons with the given uid.
  *
  * @param string $uid The uid to search for.
  *
  * @return array The GUID(s).
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function searchGuidForUid($uid)
 {
     $criteria = new Horde_Kolab_Server_Query_Element_Equals('uid', $uid);
     return parent::searchRestrictKolab($criteria);
 }
 /**
  * Return all KolabInetOrgPersons with the given uid, mail or alias address.
  *
  * @param string $id The uid or mail address or alias address to search for.
  *
  * @return array The GUID(s).
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function searchGuidForUidOrMailOrAlias($id)
 {
     $criteria = new Horde_Kolab_Server_Query_Element_Or(array(new Horde_Kolab_Server_Query_Element_Equals('Uid', $id), new Horde_Kolab_Server_Query_Element_Equals('Mail', $id), new Horde_Kolab_Server_Query_Element_Equals('Alias', $id)));
     return parent::searchRestrictKolab($criteria);
 }
Exemple #4
0
 /**
  * Return all KolabInetOrgPersons with the given mail.
  *
  * @param string $mail The mail to search for.
  *
  * @return array The GUID(s).
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function searchGuidForMail($mail)
 {
     $criteria = new Horde_Kolab_Server_Query_Element_Equals('mail', $mail);
     return parent::searchRestrictKolab($criteria);
 }
Exemple #5
0
 /**
  * Return all KolabInetOrgPersons with the given alias.
  *
  * @param string $alias The alias address to search for.
  *
  * @return array The GUID(s).
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function searchGuidForAlias($alias)
 {
     $criteria = new Horde_Kolab_Server_Query_Element_Equals('alias', $alias);
     return parent::searchRestrictKolab($criteria);
 }