original_string: public function format_shorttext($field)
      {
          $text = $this->current_row[$field];
          if (strlen($text) > 60) {
              // Not sure about multi-byte support and execution speed of this
              $a = explode(PHP_EOL, wordwrap($text, 28, PHP_EOL, true), 2);
              $b = explode(PHP_EOL, wordwrap(strrev($text), 28, PHP_EOL, true), 2);
              $text = $a[0].' ~~~ '.strrev($b[0]);
          }
  
          $this->current_row[$field] = $text;
  
          $this->setTDParam(
              $field,
              'title',
              $this->app->encodeHtmlChars(strip_tags($this->current_row[$field.'_original']), ENT_QUOTES)
          );
      }
code: public function format_shorttext($field)
      {
          $text = $this->current_row[$field];
          if (strlen($text) > 60) {
              // Not sure about multi-byte support and execution speed of this
              $a = explode(PHP_EOL, wordwrap($text, 28, PHP_EOL, true), 2);
              $b = explode(PHP_EOL, wordwrap(strrev($text), 28, PHP_EOL, true), 2);
              $text = $a[0].' ~~~ '.strrev($b[0]);
          }
  
          $this->current_row[$field] = $text;
  
          $this->setTDParam(
              $field,
              'title',
              $this->app->encodeHtmlChars(strip_tags($this->current_row[$field.'_original']), ENT_QUOTES)
          );
      }
code_tokens: public function format_shorttext ( $ field ) { $ text = $ this -> current_row [ $ field ] ; if ( strlen ( $ text ) > 60 ) { // Not sure about multi-byte support and execution speed of this $ a = explode ( PHP_EOL , wordwrap ( $ text , 28 , PHP_EOL , true ) , 2 ) ; $ b = explode ( PHP_EOL , wordwrap ( strrev ( $ text ) , 28 , PHP_EOL , true ) , 2 ) ; $ text = $ a [ 0 ] . ' ~~~ ' . strrev ( $ b [ 0 ] ) ; } $ this -> current_row [ $ field ] = $ text ; $ this -> setTDParam ( $ field , 'title' , $ this -> app -> encodeHtmlChars ( strip_tags ( $ this -> current_row [ $ field . '_original' ] ) , ENT_QUOTES ) ) ; }
docstring: Format shorttext field.
  
  @param string $field
docstring_tokens: Format shorttext field .