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

Public Member Functions

 init ()
 get_name ()
 get_required_fields ()

Protected Member Functions

 get_title ()
 get_title_tip ()
 display_content ($question, $rowclasses)

Protected Attributes

 $strselect
 $firstrow = true

Detailed Description

A column with a checkbox for each question with name q{questionid}.

Definition at line 384 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 404 of file editlib.php.

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 392 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_column_base.

Definition at line 415 of file editlib.php.

get_title ( ) [protected]

Title for this column. Not used if is_sortable returns an array.

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 396 of file editlib.php.

get_title_tip ( ) [protected]
Returns:
string a fuller version of the name. Use this when get_title() returns something very short, and you want a longer version as a tool tip.

Reimplemented from question_bank_column_base.

Definition at line 400 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 388 of file editlib.php.


Field Documentation

$firstrow = true [protected]

Definition at line 386 of file editlib.php.

$strselect [protected]

Definition at line 385 of file editlib.php.


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