original_string: public static function fetch_all($params) {
          if ($records = self::retrieve_record_set($params)) {
              return $records;
          }
  
          $records = grade_object::fetch_all_helper('grade_categories', 'grade_category', $params);
          self::set_record_set($params, $records);
  
          return $records;
      }
code: public static function fetch_all($params) {
          if ($records = self::retrieve_record_set($params)) {
              return $records;
          }
  
          $records = grade_object::fetch_all_helper('grade_categories', 'grade_category', $params);
          self::set_record_set($params, $records);
  
          return $records;
      }
code_tokens: public static function fetch_all ( $ params ) { if ( $ records = self :: retrieve_record_set ( $ params ) ) { return $ records ; } $ records = grade_object :: fetch_all_helper ( 'grade_categories' , 'grade_category' , $ params ) ; self :: set_record_set ( $ params , $ records ) ; return $ records ; }
docstring: Finds and returns all grade_category instances based on params.
  
  @param array $params associative arrays varname=>value
  @return array array of grade_category insatnces or false if none found.
docstring_tokens: Finds and returns all grade_category instances based on params .