original_string: public function get_records($table, array $conditions=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0) {
          list($select, $params) = $this->where_clause($table, $conditions);
          return $this->get_records_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
      }
code: public function get_records($table, array $conditions=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0) {
          list($select, $params) = $this->where_clause($table, $conditions);
          return $this->get_records_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
      }
code_tokens: public function get_records ( $ table , array $ conditions = null , $ sort = '' , $ fields = '*' , $ limitfrom = 0 , $ limitnum = 0 ) { list ( $ select , $ params ) = $ this -> where_clause ( $ table , $ conditions ) ; return $ this -> get_records_select ( $ table , $ select , $ params , $ sort , $ fields , $ limitfrom , $ limitnum ) ; }
docstring: Get a number of records as an array of objects where all the given conditions met.
  
  If the query succeeds and returns at least one record, the
  return value is an array of objects, one object for each
  record found. The array key is the value from the first
  column of the result set. The object associated with that key
  has a member variable for each column of the results.
  
  @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). The first field will be used as key for the
  array so must be a unique field such as 'id'.
  @param int $limitfrom return a subset of records, starting at this point (optional).
  @param int $limitnum return a subset comprising this many records in total (optional, required if $limitfrom is set).
  @return array An array of Objects indexed by first column.
  @throws dml_exception A DML specific exception is thrown for any errors.
docstring_tokens: Get a number of records as an array of objects where all the given conditions met .