Example #1
0
 /**
  * @see String::excerpt()
  *
  * @param string $text String to search the phrase in
  * @param string $phrase Phrase that will be searched for
  * @param integer $radius The amount of characters that will be returned on each side of the founded phrase
  * @param string $ending Ending that will be appended
  * @return string Modified string
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/text.html#TextHelper::excerpt
  */
 public function excerpt($text, $phrase, $radius = 100, $ending = '...')
 {
     return $this->_engine->excerpt($text, $phrase, $radius, $ending);
 }