Moodle  2.2.1
http://www.collinsharper.com
question_finder Class Reference

Public Member Functions

 get_questions_from_categories ($categoryids, $extraconditions, $extraparams=array())

Detailed Description

Class for loading questions according to various criteria.

Definition at line 410 of file bank.php.


Member Function Documentation

get_questions_from_categories ( categoryids,
extraconditions,
extraparams = array() 
)

Get the ids of all the questions in a list of categoryies.

Parameters:
array$categoryidseither a categoryid, or a comma-separated list category ids, or an array of them.
string$extraconditionsextra conditions to AND with the rest of the where clause. Must use named parameters.
array$extraparamsany parameters used by $extraconditions.
Returns:
array questionid => questionid.

Definition at line 420 of file bank.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations