Horde_Imap_Client_Socket::_getAnnotateMoreEntry PHP Метод

_getAnnotateMoreEntry() защищенный Метод

Split a name for the METADATA extension into the correct syntax for the older ANNOTATEMORE version.
protected _getAnnotateMoreEntry ( string $name ) : array
$name string A name for a metadata entry.
Результат array A list of two elements: The entry name and the value type.
    protected function _getAnnotateMoreEntry($name)
    {
        if (substr($name, 0, 7) === '/shared') {
            return array(substr($name, 7), 'value.shared');
        } else {
            if (substr($name, 0, 8) === '/private') {
                return array(substr($name, 8), 'value.priv');
            }
        }
        $e = new Horde_Imap_Client_Exception(Horde_Imap_Client_Translation::r("Invalid METADATA entry: \"%s\"."), Horde_Imap_Client_Exception::METADATA_INVALID);
        $e->messagePrintf(array($name));
        throw $e;
    }