Moodle  2.2.1
http://www.collinsharper.com
qformat_examview Class Reference
Inheritance diagram for qformat_examview:
Collaboration diagram for qformat_examview:

Public Member Functions

 provide_import ()
 unxmlise ($xml)
 parse_matching_groups ($matching_groups)
 parse_ma ($qrec, $groupname)
 process_matches (&$questions)
 cleanUnicode ($text)
 readquestions ($lines)
 readquestion ($qrec)
 parse_tf_yn ($qrec, $question)
 parse_mc ($qrec, $question)
 parse_co ($qrec, $question)
 parse_sa ($qrec, $question)
 parse_nr ($qrec, $question)

Data Fields

 $qtypes
 $matching_questions = array()

Detailed Description

Examview question importer.

Definition at line 38 of file format.php.


Member Function Documentation

cleanUnicode ( text)

Definition at line 148 of file format.php.

Here is the caller graph for this function:

parse_co ( qrec,
question 
)

Definition at line 265 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

parse_ma ( qrec,
groupname 
)

Definition at line 112 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

parse_matching_groups ( matching_groups)

Definition at line 88 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

parse_mc ( qrec,
question 
)

Definition at line 244 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

parse_nr ( qrec,
question 
)

Definition at line 290 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

parse_sa ( qrec,
question 
)

Definition at line 283 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

parse_tf_yn ( qrec,
question 
)

Definition at line 228 of file format.php.

Here is the caller graph for this function:

process_matches ( &$  questions)

Definition at line 124 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from qformat_default.

Definition at line 57 of file format.php.

readquestion ( qrec)

Reimplemented from qformat_default.

Definition at line 180 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:

readquestions ( lines)

Parses an array of lines into an array of questions, where each item is a question object as defined by readquestion().

Reimplemented from qformat_default.

Definition at line 152 of file format.php.

Here is the call graph for this function:

unxmlise ( xml)

unxmlise reconstructs part of the xml data structure in order to identify the actual data therein

Parameters:
array$xmlsection of the xml data structure
Returns:
string data with evrything else removed

Definition at line 67 of file format.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$matching_questions = array()

Definition at line 55 of file format.php.

$qtypes
Initial value:
 array(
        'tf' => TRUEFALSE,
        'mc' => MULTICHOICE,
        'yn' => TRUEFALSE,
        'co' => SHORTANSWER,
        'ma' => MATCH,
        'mtf' => 99,
        'nr' => NUMERICAL,
        'pr' => 99,
        'es' => 99,
        'ca' => 99,
        'ot' => 99,
        'sa' => ESSAY
        )

Definition at line 40 of file format.php.


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