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;
    }
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;
    }
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 ; }
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
Allows to set the display column value for all columns without col_xxxxx method .