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

Public Member Functions

 get_name ()
 get_extra_joins ()
 get_required_fields ()
 is_sortable ()

Protected Member Functions

 get_title ()
 display_content ($question, $rowclasses)

Detailed Description

A column type for the name of the question last modifier.

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

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.

Returns:
array 'table_alias' => 'JOIN clause'

Reimplemented from question_bank_column_base.

Definition at line 568 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 551 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 572 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 555 of file editlib.php.

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.

Returns:
mixed as above.

Reimplemented from question_bank_column_base.

Definition at line 576 of file editlib.php.


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