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


Public Member Functions | |
| get_name () | |
| get_required_fields () | |
| is_sortable () | |
Protected Member Functions | |
| get_title () | |
| label_for ($question) | |
| display_content ($question, $rowclasses) | |
Protected Attributes | |
| $checkboxespresent = null | |
A column type for the name of the question name.
Definition at line 460 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.
Reimplemented in question_bank_question_name_text_column.
Definition at line 482 of file editlib.php.

| get_name | ( | ) |
| object | $question | the row from the $question table, augmented with extra information. |
Reimplemented from question_bank_column_base.
Reimplemented in question_bank_question_name_text_column.
Definition at line 463 of file editlib.php.
Reimplemented from question_bank_column_base.
Reimplemented in question_bank_question_name_text_column.
Definition at line 493 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 467 of file editlib.php.
| is_sortable | ( | ) |
Can this column be sorted on? You can return either: + false for no (the default), + a field name, if sorting this column corresponds to sorting on that datbase field. + an array of subnames to sort on as follows return array( 'firstname' => array('field' => 'uc.firstname', 'title' => get_string('firstname')), 'lastname' => array('field' => 'uc.lastname', 'field' => get_string('lastname')), ); As well as field, and field, you can also add 'revers' => 1 if you want the default sort order to be DESC.
Reimplemented from question_bank_column_base.
Definition at line 497 of file editlib.php.
| label_for | ( | $ | question | ) | [protected] |
$checkboxespresent = null [protected] |
Definition at line 461 of file editlib.php.