Horde_Imap_Client_Data_Format_String::escape PHP Method

escape() public method

public escape ( )
    public function escape()
    {
        if ($this->literal()) {
            throw new Horde_Imap_Client_Data_Format_Exception('String requires literal to output.');
        }
        return $this->quoted() ? stream_get_contents($this->escapeStream()) : $this->_data->getString(0);
    }

Usage Example

示例#1
0
文件: Nstring.php 项目: horde/horde
 /**
  */
 public function escape()
 {
     return is_null($this->_data) ? 'NIL' : parent::escape();
 }