original_string: public function get_recordset($table, array $conditions=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0) {
          list($select, $params) = $this->where_clause($table, $conditions);
          return $this->get_recordset_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
      }
code: public function get_recordset($table, array $conditions=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0) {
          list($select, $params) = $this->where_clause($table, $conditions);
          return $this->get_recordset_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
      }
code_tokens: public function get_recordset ( $ table , array $ conditions = null , $ sort = '' , $ fields = '*' , $ limitfrom = 0 , $ limitnum = 0 ) { list ( $ select , $ params ) = $ this -> where_clause ( $ table , $ conditions ) ; return $ this -> get_recordset_select ( $ table , $ select , $ params , $ sort , $ fields , $ limitfrom , $ limitnum ) ; }
docstring: Get a number of records as a moodle_recordset where all the given conditions met.
  
  Selects records from the table $table.
  
  If specified, only records meeting $conditions.
  
  If specified, the results will be sorted as specified by $sort. This
  is added to the SQL as "ORDER BY $sort". Example values of $sort
  might be "time ASC" or "time DESC".
  
  If $fields is specified, only those fields are returned.
  
  Since this method is a little less readable, use of it should be restricted to
  code where it's possible there might be large datasets being returned.  For known
  small datasets use get_records - it leads to simpler code.
  
  If you only want some of the records, specify $limitfrom and $limitnum.
  The query will skip the first $limitfrom records (according to the sort
  order) and then return the next $limitnum records. If either of $limitfrom
  or $limitnum is specified, both must be present.
  
  The return value is a moodle_recordset
  if the query succeeds. If an error occurs, false is returned.
  
  @param string $table the table to query.
  @param array $conditions optional array $fieldname=>requestedvalue with AND in between
  @param string $sort an order to sort the results in (optional, a valid SQL ORDER BY parameter).
  @param string $fields a comma separated list of fields to return (optional, by default all fields are returned).
  @param int $limitfrom return a subset of records, starting at this point (optional).
  @param int $limitnum return a subset comprising this many records (optional, required if $limitfrom is set).
  @return moodle_recordset A moodle_recordset instance
  @throws dml_exception A DML specific exception is thrown for any errors.
docstring_tokens: Get a number of records as a moodle_recordset where all the given conditions met .