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


Public Member Functions | |
| get_name () | |
| get_extra_joins () | |
| get_required_fields () | |
| is_sortable () | |
Protected Member Functions | |
| get_title () | |
| display_content ($question, $rowclasses) | |
A column type for the name of the question creator.
Definition at line 509 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 518 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 527 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 510 of file editlib.php.
Reimplemented from question_bank_column_base.
Definition at line 531 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 514 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 535 of file editlib.php.