public function col_scale($row) {
        global $DB;

        if (empty($this->scale)) {
            $dbparams = array('id' => -($this->assignment->get_instance()->grade));
            $this->scale = $DB->get_record('scale', $dbparams);
        }

        if (!empty($this->scale->scale)) {
            return implode("\n", explode(',', $this->scale->scale));
        }
        return '';
    }
public function col_scale($row) {
        global $DB;

        if (empty($this->scale)) {
            $dbparams = array('id' => -($this->assignment->get_instance()->grade));
            $this->scale = $DB->get_record('scale', $dbparams);
        }

        if (!empty($this->scale->scale)) {
            return implode("\n", explode(',', $this->scale->scale));
        }
        return '';
    }
public function col_scale ( $ row ) { global $ DB ; if ( empty ( $ this -> scale ) ) { $ dbparams = array ( 'id' => - ( $ this -> assignment -> get_instance ( ) -> grade ) ) ; $ this -> scale = $ DB -> get_record ( 'scale' , $ dbparams ) ; } if ( ! empty ( $ this -> scale -> scale ) ) { return implode ( "\n" , explode ( ',' , $ this -> scale -> scale ) ) ; } return '' ; }
For download only - list all the valid options for this custom scale.

@param stdClass $row - The row of data
@return string A list of valid options for the current scale
For download only - list all the valid options for this custom scale .