Horde_Imap_Client_Socket::_parseACL PHP Method

_parseACL() protected method

Parse an ACL response (RFC 4314 [3.6]).
protected _parseACL ( Horde_Imap_Client_Interaction_Pipeline $pipeline, Horde_Imap_Client_Tokenize $data )
$pipeline Horde_Imap_Client_Interaction_Pipeline Pipeline object.
$data Horde_Imap_Client_Tokenize The server response.
    protected function _parseACL(Horde_Imap_Client_Interaction_Pipeline $pipeline, Horde_Imap_Client_Tokenize $data)
    {
        $acl = array();
        // Ignore mailbox argument -> index 1
        $data->next();
        while (($curr = $data->next()) !== false) {
            $acl[$curr] = $curr[0] === '-' ? new Horde_Imap_Client_Data_AclNegative($data->next()) : new Horde_Imap_Client_Data_Acl($data->next());
        }
        $pipeline->data['getacl'] = $acl;
    }