|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| get_name () | |
| get_extra_joins () | |
| get_required_fields () | |
Protected Member Functions | |
| init () | |
| get_title () | |
| display_content ($question, $rowclasses) | |
Protected Attributes | |
| $formatoptions | |
A column type for the name of the question name.
Definition at line 776 of file editlib.php.
| display_content | ( | $ | question, |
| $ | rowclasses | ||
| ) | [protected] |
Output the contents of this column.
| object | $question | the row from the $question table, augmented with extra information. |
| string | $rowclasses | CSS class names that should be applied to this row of output. |
Reimplemented from question_bank_column_base.
Definition at line 793 of file editlib.php.

| get_extra_joins | ( | ) |
Return an array 'table_alias' => 'JOIN clause' to bring in any data that this column required.
The return values for all the columns will be checked. It is OK if two columns join in the same table with the same alias and identical JOIN clauses. If to columns try to use the same alias with different joins, you get an error. The only table included by default is the question table, which is aliased to 'q'.
It is importnat that your join simply adds additional data (or NULLs) to the existing rows of the query. It must not cause additional rows.
Reimplemented from question_bank_column_base.
Definition at line 804 of file editlib.php.
| get_name | ( | ) |
| object | $question | the row from the $question table, augmented with extra information. |
Reimplemented from question_bank_column_base.
Definition at line 785 of file editlib.php.
Reimplemented from question_bank_column_base.
Definition at line 808 of file editlib.php.
| get_title | ( | ) | [protected] |
Title for this column. Not used if is_sortable returns an array.
| object | $question | the row from the $question table, augmented with extra information. |
| string | $rowclasses | CSS class names that should be applied to this row of output. |
Reimplemented from question_bank_column_base.
Definition at line 789 of file editlib.php.
| init | ( | ) | [protected] |
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 779 of file editlib.php.
$formatoptions [protected] |
Definition at line 777 of file editlib.php.