original_string: public static function get_records_select($select, $params = null, $sort = '', $fields = '*', $limitfrom = 0, $limitnum = 0) {
          global $DB;
  
          $records = $DB->get_records_select(static::TABLE, $select, $params, $sort, $fields, $limitfrom, $limitnum);
  
          // We return class instances.
          $instances = array();
          foreach ($records as $key => $record) {
              $instances[$key] = new static(0, $record);
          }
  
          return $instances;
  
      }
code: public static function get_records_select($select, $params = null, $sort = '', $fields = '*', $limitfrom = 0, $limitnum = 0) {
          global $DB;
  
          $records = $DB->get_records_select(static::TABLE, $select, $params, $sort, $fields, $limitfrom, $limitnum);
  
          // We return class instances.
          $instances = array();
          foreach ($records as $key => $record) {
              $instances[$key] = new static(0, $record);
          }
  
          return $instances;
  
      }
code_tokens: public static function get_records_select ( $ select , $ params = null , $ sort = '' , $ fields = '*' , $ limitfrom = 0 , $ limitnum = 0 ) { global $ DB ; $ records = $ DB -> get_records_select ( static :: TABLE , $ select , $ params , $ sort , $ fields , $ limitfrom , $ limitnum ) ; // We return class instances. $ instances = array ( ) ; foreach ( $ records as $ key => $ record ) { $ instances [ $ key ] = new static ( 0 , $ record ) ; } return $ instances ; }
docstring: Load a list of records based on a select query.
  
  @param string $select
  @param array $params
  @param string $sort
  @param string $fields
  @param int $limitfrom
  @param int $limitnum
  @return \core\persistent[]
docstring_tokens: Load a list of records based on a select query .