original_string: public function teaser($text, $enable_filter = true, $filter_id = null)
      {
          $summary = '';
  
          if ($text !== '') {
              $parts = $this->explodeText($text);
              $summary = reset($parts);
          }
  
          if ($summary !== '' && $enable_filter) {
              $summary = $this->filter($summary, $filter_id);
          }
  
          return $summary;
      }
code: public function teaser($text, $enable_filter = true, $filter_id = null)
      {
          $summary = '';
  
          if ($text !== '') {
              $parts = $this->explodeText($text);
              $summary = reset($parts);
          }
  
          if ($summary !== '' && $enable_filter) {
              $summary = $this->filter($summary, $filter_id);
          }
  
          return $summary;
      }
code_tokens: public function teaser ( $ text , $ enable_filter = true , $ filter_id = null ) { $ summary = '' ; if ( $ text !== '' ) { $ parts = $ this -> explodeText ( $ text ) ; $ summary = reset ( $ parts ) ; } if ( $ summary !== '' && $ enable_filter ) { $ summary = $ this -> filter ( $ summary , $ filter_id ) ; } return $ summary ; }
docstring: Returns a string from a text before the teaser delimiter
  @param string $text
  @param boolean $enable_filter
  @param mixed $filter_id
  @return string
docstring_tokens: Returns a string from a text before the teaser delimiter