/** * Returns the UIDs of the bank accounts for the user with the given mail * address. * * @param Horde_Kolab_Server $server The server to query. * @param string $mail Search objects with this mail alias. * * @return mixed The UIDs or false if there was no result. * * @throws Horde_Kolab_Server_Exception */ public static function accountsForMail($server, $mail) { $uid = $server->uidForMail($mail, Horde_Kolab_Server_Object::RESULT_SINGLE); return self::objectsForUid($server, $uid, self::OBJECTCLASS_KOLABGERMANBANKARRANGEMENT); }
/** * Returns the UIDs of the pop3 accounts for the user with the given mail * address. * * @param Horde_Kolab_Server $server The server to query. * @param string $mail Search objects with this mail alias. * * @return mixed The UIDs or false if there was no result. * * @throws Horde_Kolab_Server_Exception */ public static function pop3AccountsForMail($server, $mail) { $uid = $server->uidForMail($mail, Horde_Kolab_Server_Object::RESULT_SINGLE); return self::objectsForUid($server, $uid, self::OBJECTCLASS_KOLABEXTERNALPOP3ACCOUNT); }