Tools\Mailer\Email::_wrap PHP Method

_wrap() protected method

Fix line length
protected _wrap ( string $message, integer $wrapLength = CakeEmail::LINE_LENGTH_MUST ) : array
$message string Message to wrap
$wrapLength integer
return array Wrapped message
    protected function _wrap($message, $wrapLength = CakeEmail::LINE_LENGTH_MUST)
    {
        if ($this->_wrapLength !== null) {
            $wrapLength = $this->_wrapLength;
        }
        return parent::_wrap($message, $wrapLength);
    }

Usage Example

Example #1
0
 /**
  * Fix line length
  *
  * @overwrite
  * @param string $message Message to wrap
  * @return array Wrapped message
  */
 protected function _wrap($message, $wrapLength = Email::LINE_LENGTH_MUST)
 {
     if ($this->_wrapLength !== null) {
         $wrapLength = $this->_wrapLength;
     }
     return parent::_wrap($message, $wrapLength);
 }
All Usage Examples Of Tools\Mailer\Email::_wrap