original_string: public static function get_records($filters = array(), $sort = '', $order = 'ASC', $skip = 0, $limit = 0) {
          global $DB;
  
          $orderby = '';
          if (!empty($sort)) {
              $orderby = $sort . ' ' . $order;
          }
  
          $records = $DB->get_records(static::TABLE, $filters, $orderby, '*', $skip, $limit);
          $instances = array();
  
          foreach ($records as $record) {
              $newrecord = new static(0, $record);
              array_push($instances, $newrecord);
          }
          return $instances;
      }
code: public static function get_records($filters = array(), $sort = '', $order = 'ASC', $skip = 0, $limit = 0) {
          global $DB;
  
          $orderby = '';
          if (!empty($sort)) {
              $orderby = $sort . ' ' . $order;
          }
  
          $records = $DB->get_records(static::TABLE, $filters, $orderby, '*', $skip, $limit);
          $instances = array();
  
          foreach ($records as $record) {
              $newrecord = new static(0, $record);
              array_push($instances, $newrecord);
          }
          return $instances;
      }
code_tokens: public static function get_records ( $ filters = array ( ) , $ sort = '' , $ order = 'ASC' , $ skip = 0 , $ limit = 0 ) { global $ DB ; $ orderby = '' ; if ( ! empty ( $ sort ) ) { $ orderby = $ sort . ' ' . $ order ; } $ records = $ DB -> get_records ( static :: TABLE , $ filters , $ orderby , '*' , $ skip , $ limit ) ; $ instances = array ( ) ; foreach ( $ records as $ record ) { $ newrecord = new static ( 0 , $ record ) ; array_push ( $ instances , $ newrecord ) ; } return $ instances ; }
docstring: Load a list of records.
  
  @param array $filters Filters to apply.
  @param string $sort Field to sort by.
  @param string $order Sort order.
  @param int $skip Limitstart.
  @param int $limit Number of rows to return.
  
  @return \core\persistent[]
docstring_tokens: Load a list of records .