Horde_Imap_Client_Base::getMyACLRights PHP Method

getMyACLRights() public method

Get the ACL rights for the current user for a given mailbox. The server must support the IMAP ACL extension (RFC 2086/4314).
public getMyACLRights ( mixed $mailbox ) : Horde_Imap_Client_Data_Acl
$mailbox mixed A mailbox. Either a Horde_Imap_Client_Mailbox object or a string (UTF-8).
return Horde_Imap_Client_Data_Acl An ACL data object.
    public function getMyACLRights($mailbox)
    {
        $this->login();
        if (!$this->_capability('ACL')) {
            throw new Horde_Imap_Client_Exception_NoSupportExtension('ACL');
        }
        return $this->_getMyACLRights(Horde_Imap_Client_Mailbox::get($mailbox));
    }