Horde_Kolab_Server_Object_Kolabinetorgperson::deleteExternalAccount PHP Method

deleteExternalAccount() public method

Delete an external account.
public deleteExternalAccount ( string $mail ) : null
$mail string The mail address of the pop3 account.
return null
    public function deleteExternalAccount($mail)
    {
        $account[Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_OWNERUID] = $this->getUid();
        $account[Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_MAIL] = $mail;
        $object =& Horde_Kolab_Server_Object::factory('Horde_Kolab_Server_Object_Kolabpop3account', null, $this->server, $account);
        $object->delete();
    }