original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Retrieves from DB and returns the data how this rubric was filled