original_string: public function format_button($field)
      {
          $class = $this->columns[$field]['button_class'];
  
          $icon = $this->columns[$field]['icon'];
          if ($icon) {
              if ($icon[0] != '<') {
                  $icon = '<span class="icon-'.$icon.'"></span>';
              }
              $icon .= '&nbsp;';
          }
  
          $this->current_row_html[$field] =
              '<button class="atk-button-small do-'.$field.'  '.$class.'" data-id="'.$this->model->id.'">'.
                  $icon.$this->columns[$field]['descr'].
              '</button>';
      }
code: public function format_button($field)
      {
          $class = $this->columns[$field]['button_class'];
  
          $icon = $this->columns[$field]['icon'];
          if ($icon) {
              if ($icon[0] != '<') {
                  $icon = '<span class="icon-'.$icon.'"></span>';
              }
              $icon .= '&nbsp;';
          }
  
          $this->current_row_html[$field] =
              '<button class="atk-button-small do-'.$field.'  '.$class.'" data-id="'.$this->model->id.'">'.
                  $icon.$this->columns[$field]['descr'].
              '</button>';
      }
code_tokens: public function format_button ( $ field ) { $ class = $ this -> columns [ $ field ] [ 'button_class' ] ; $ icon = $ this -> columns [ $ field ] [ 'icon' ] ; if ( $ icon ) { if ( $ icon [ 0 ] != '<' ) { $ icon = '<span class="icon-' . $ icon . '"></span>' ; } $ icon .= '&nbsp;' ; } $ this -> current_row_html [ $ field ] = '<button class="atk-button-small do-' . $ field . '  ' . $ class . '" data-id="' . $ this -> model -> id . '">' . $ icon . $ this -> columns [ $ field ] [ 'descr' ] . '</button>' ; }
docstring: Format field as button.
  
  @param string $field
docstring_tokens: Format field as button .