public function get_recordset_list($table, $field, array $values, $sort='', $fields='*', $limitfrom=0, $limitnum=0) {
        list($select, $params) = $this->where_clause_list($field, $values);
        return $this->get_recordset_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
    }
public function get_recordset_list($table, $field, array $values, $sort='', $fields='*', $limitfrom=0, $limitnum=0) {
        list($select, $params) = $this->where_clause_list($field, $values);
        return $this->get_recordset_select($table, $select, $params, $sort, $fields, $limitfrom, $limitnum);
    }
public function get_recordset_list ( $ table , $ field , array $ values , $ sort = '' , $ fields = '*' , $ limitfrom = 0 , $ limitnum = 0 ) { list ( $ select , $ params ) = $ this -> where_clause_list ( $ field , $ values ) ; return $ this -> get_recordset_select ( $ table , $ select , $ params , $ sort , $ fields , $ limitfrom , $ limitnum ) ; }
Get a number of records as a moodle_recordset where one field match one list of values.

Only records where $field takes one of the values $values are returned.
$values must be an array of values.

Other arguments and the return type are like {@link function get_recordset}.

@param string $table the table to query.
@param string $field a field to check (optional).
@param array $values array of values the field must have
@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.
Get a number of records as a moodle_recordset where one field match one list of values .