Horde_Imap_Client_Mailbox::__get PHP Method

__get() public method

public __get ( $name )
    public function __get($name)
    {
        switch ($name) {
            case 'list_escape':
                return preg_replace("/\\*+/", '%', $this->utf8);
            case 'utf7imap':
                if (!isset($this->_utf7imap)) {
                    $n = Horde_Imap_Client_Utf7imap::Utf8ToUtf7Imap($this->_utf8);
                    $this->_utf7imap = $n == $this->_utf8 ? true : $n;
                }
                return $this->_utf7imap === true ? $this->_utf8 : $this->_utf7imap;
            case 'utf8':
                if (!isset($this->_utf8)) {
                    $this->_utf8 = Horde_Imap_Client_Utf7imap::Utf7ImapToUtf8($this->_utf7imap);
                    if ($this->_utf8 == $this->_utf7imap) {
                        $this->_utf7imap = true;
                    }
                }
                return (string) $this->_utf8;
        }
    }