Horde_Imap_Client_Base::getQuotaRoot PHP Method

getQuotaRoot() public method

Get quota limits for a mailbox. The server must support the IMAP QUOTA extension (RFC 2087).
public getQuotaRoot ( mixed $mailbox ) : mixed
$mailbox mixed A mailbox. Either a Horde_Imap_Client_Mailbox object or a string (UTF-8).
return mixed An array with the keys being the quota roots. Each key holds an array with resource keys: each of these keys holds an array with 2 values: 'limit' and 'usage'.
    public function getQuotaRoot($mailbox)
    {
        $this->login();
        if (!$this->_capability('QUOTA')) {
            throw new Horde_Imap_Client_Exception_NoSupportExtension('QUOTA');
        }
        return $this->_getQuotaRoot(Horde_Imap_Client_Mailbox::get($mailbox));
    }