original_string: protected function getResultTable($results)
      {
          $resultSet = 1;
          $resultTable     = \MUtil_Html::create()->array();
          foreach ($results as $result) {
              if (is_string($result)) {
                  $this->addMessage($result);
              } else {
                  $resultRow = $resultTable->echo($result, sprintf($this->_('Result set %s.'), $resultSet++));
                  $resultRow->class = 'browser';
              }
          }
          return $resultTable;
      }
code: protected function getResultTable($results)
      {
          $resultSet = 1;
          $resultTable     = \MUtil_Html::create()->array();
          foreach ($results as $result) {
              if (is_string($result)) {
                  $this->addMessage($result);
              } else {
                  $resultRow = $resultTable->echo($result, sprintf($this->_('Result set %s.'), $resultSet++));
                  $resultRow->class = 'browser';
              }
          }
          return $resultTable;
      }
code_tokens: protected function getResultTable ( $ results ) { $ resultSet = 1 ; $ resultTable = \ MUtil_Html :: create ( ) -> array ( ) ; foreach ( $ results as $ result ) { if ( is_string ( $ result ) ) { $ this -> addMessage ( $ result ) ; } else { $ resultRow = $ resultTable -> echo ( $ result , sprintf ( $ this -> _ ( 'Result set %s.' ) , $ resultSet ++ ) ) ; $ resultRow -> class = 'browser' ; } } return $ resultTable ; }
docstring: Return an array attribute with the current resultset
  
  @return \MUtil_Html_ArrayAttribute
docstring_tokens: Return an array attribute with the current resultset