IMP_Indices::toArray PHP Method

toArray() public method

Returns an array containing compressed UID values.
public toArray ( ) : array
return array Keys are base64 encoded mailbox names, values are sequence strings.
    public function toArray()
    {
        $converted = array();
        $imp_imap = $GLOBALS['injector']->getInstance('IMP_Factory_Imap')->create();
        foreach ($this->_indices as $key => $val) {
            $converted[IMP_Mailbox::formTo($key)] = strval($imp_imap->getIdsOb($val));
        }
        return $converted;
    }