Horde_Imap_Client_Data_Format_String::forceLiteral PHP Method

forceLiteral() public method

Force item to be output as a literal.
public forceLiteral ( )
    public function forceLiteral()
    {
        $this->_filter = $this->_filterParams();
        // Keep binary status, if set
        $this->_filter->literal = true;
        $this->_filter->quoted = false;
    }

Usage Example

示例#1
0
 /**
  * Prepares append message data for insertion into the IMAP command
  * string.
  *
  * @param mixed $data      Either a resource or a string.
  * @param integer &$asize  Total append size.
  *
  * @return Horde_Imap_Client_Data_Format_String  The data object.
  */
 protected function _appendData($data, &$asize)
 {
     if (is_resource($data)) {
         rewind($data);
     }
     $ob = new Horde_Imap_Client_Data_Format_String($data, array('eol' => true, 'skipscan' => true));
     // APPEND data MUST be sent in a literal (RFC 3501 [6.3.11]).
     $ob->forceLiteral();
     $asize += $ob->length();
     return $ob;
 }
All Usage Examples Of Horde_Imap_Client_Data_Format_String::forceLiteral