public function get_rubric_filling($force = false) {
        global $DB;
        if ($this->rubric === null || $force) {
            $records = $DB->get_records('gradingform_rubric_fillings', array('instanceid' => $this->get_id()));
            $this->rubric = array('criteria' => array());
            foreach ($records as $record) {
                $this->rubric['criteria'][$record->criterionid] = (array)$record;
            }
        }
        return $this->rubric;
    }
public function get_rubric_filling($force = false) {
        global $DB;
        if ($this->rubric === null || $force) {
            $records = $DB->get_records('gradingform_rubric_fillings', array('instanceid' => $this->get_id()));
            $this->rubric = array('criteria' => array());
            foreach ($records as $record) {
                $this->rubric['criteria'][$record->criterionid] = (array)$record;
            }
        }
        return $this->rubric;
    }
public function get_rubric_filling ( $ force = false ) { global $ DB ; if ( $ this -> rubric === null || $ force ) { $ records = $ DB -> get_records ( 'gradingform_rubric_fillings' , array ( 'instanceid' => $ this -> get_id ( ) ) ) ; $ this -> rubric = array ( 'criteria' => array ( ) ) ; foreach ( $ records as $ record ) { $ this -> rubric [ 'criteria' ] [ $ record -> criterionid ] = ( array ) $ record ; } } return $ this -> rubric ; }
Retrieves from DB and returns the data how this rubric was filled

@param boolean $force whether to force DB query even if the data is cached
@return array
Retrieves from DB and returns the data how this rubric was filled