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

Public Member Functions

 init ()
 get_name ()
 get_required_fields ()

Protected Member Functions

 display_content ($question, $rowclasses)

Protected Attributes

 $stradd

Detailed Description

A column type for the add this question to the quiz.

Definition at line 1011 of file editlib.php.


Member Function Documentation

display_content ( question,
rowclasses 
) [protected]

Output the contents of this column.

Parameters:
object$questionthe row from the $question table, augmented with extra information.
string$rowclassesCSS class names that should be applied to this row of output.

Reimplemented from question_bank_column_base.

Definition at line 1023 of file editlib.php.

Here is the call graph for this function:

get_name ( )
Parameters:
object$questionthe row from the $question table, augmented with extra information.
Returns:
string internal name for this column. Used as a CSS class name, and to store information about the current sort. Must match PARAM_ALPHA.

Reimplemented from question_bank_column_base.

Definition at line 1019 of file editlib.php.

Returns:
array fields required. use table alias 'q' for the question table, or one of the ones from get_extra_joins. Every field requested must specify a table prefix.

Reimplemented from question_bank_action_column_base.

Definition at line 1033 of file editlib.php.

init ( )

A chance for subclasses to initialise themselves, for example to load lang strings, without having to override the constructor.

Reimplemented from question_bank_column_base.

Definition at line 1014 of file editlib.php.


Field Documentation

$stradd [protected]

Definition at line 1012 of file editlib.php.


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