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

Public Member Functions

 get_name ()
 get_extra_joins ()
 get_required_fields ()

Protected Member Functions

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

Protected Attributes

 $formatoptions

Detailed Description

A column type for the name of the question name.

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

Here is the call graph for this function:

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 804 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 785 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 808 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 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.


Field Documentation

$formatoptions [protected]

Definition at line 777 of file editlib.php.


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