original_string: public function other_cols($column, $row) {
          if (preg_match('/^val(\d+)$/', $column, $matches)) {
              $items = $this->feedbackstructure->get_items();
              $itemobj = feedback_get_item_class($items[$matches[1]]->typ);
              return trim($itemobj->get_printval($items[$matches[1]], (object) ['value' => $row->$column] ));
          }
          return $row->$column;
      }
code: public function other_cols($column, $row) {
          if (preg_match('/^val(\d+)$/', $column, $matches)) {
              $items = $this->feedbackstructure->get_items();
              $itemobj = feedback_get_item_class($items[$matches[1]]->typ);
              return trim($itemobj->get_printval($items[$matches[1]], (object) ['value' => $row->$column] ));
          }
          return $row->$column;
      }
code_tokens: public function other_cols ( $ column , $ row ) { if ( preg_match ( '/^val(\d+)$/' , $ column , $ matches ) ) { $ items = $ this -> feedbackstructure -> get_items ( ) ; $ itemobj = feedback_get_item_class ( $ items [ $ matches [ 1 ] ] -> typ ) ; return trim ( $ itemobj -> get_printval ( $ items [ $ matches [ 1 ] ] , ( object ) [ 'value' => $ row -> $ column ] ) ) ; } return $ row -> $ column ; }
docstring: Allows to set the display column value for all columns without "col_xxxxx" method.
  @param string $column column name
  @param stdClass $row current record result of SQL query
docstring_tokens: Allows to set the display column value for all columns without col_xxxxx method .