Horde_Kolab_Server_Object_Kolabinetorgperson::getExternalAccounts PHP Method

getExternalAccounts() public method

List the external pop3 accounts of this object.
public getExternalAccounts ( ) : array
return array The data of the pop3 accounts.
    public function getExternalAccounts()
    {
        $result = array();
        $account_uids = $this->objectsForUid($this->server, $this->uid, Horde_Kolab_Server_Object_Kolabpop3account::OBJECTCLASS_KOLABEXTERNALPOP3ACCOUNT);
        if ($account_uids !== false) {
            foreach ($account_uids as $account_uid) {
                $account = $this->server->fetch($account_uid, 'Horde_Kolab_Server_Object_Kolabpop3account');
                $result[] = $account->toHash();
            }
        }
        return $result;
    }