original_string: public function format_template($field)
      {
          if (!($t = $this->columns[$field]['template'])) {
              throw new BaseException('use setTemplate() for field '.$field);
          }
  
          $this->current_row_html[$field] = $t
              ->trySet('id', $this->current_id)
              ->set($this->current_row)
              ->trySet('_value_', $this->current_row[$field])
              ->render();
      }
code: public function format_template($field)
      {
          if (!($t = $this->columns[$field]['template'])) {
              throw new BaseException('use setTemplate() for field '.$field);
          }
  
          $this->current_row_html[$field] = $t
              ->trySet('id', $this->current_id)
              ->set($this->current_row)
              ->trySet('_value_', $this->current_row[$field])
              ->render();
      }
code_tokens: public function format_template ( $ field ) { if ( ! ( $ t = $ this -> columns [ $ field ] [ 'template' ] ) ) { throw new BaseException ( 'use setTemplate() for field ' . $ field ) ; } $ this -> current_row_html [ $ field ] = $ t -> trySet ( 'id' , $ this -> current_id ) -> set ( $ this -> current_row ) -> trySet ( '_value_' , $ this -> current_row [ $ field ] ) -> render ( ) ; }
docstring: Format field using template.
  
  @param string $field
docstring_tokens: Format field using template .