Пример #1
0
 /**
  * Fix line length
  *
  * @overwrite
  *
  * @param string $message Message to wrap
  * @param int $wrapLength
  * @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);
 }
Пример #2
0
 /**
  * Wrap to protected method
  *
  * @return array
  */
 public function wrap($text, $length = Email::LINE_LENGTH_MUST)
 {
     return parent::_wrap($text, $length);
 }