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

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

Detailed Description

A column type for the name of the question name.

Definition at line 460 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.

Reimplemented in question_bank_question_name_text_column.

Definition at line 482 of file editlib.php.

Here is the call graph for this function:

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.

Reimplemented in question_bank_question_name_text_column.

Definition at line 463 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.

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.

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 467 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 497 of file editlib.php.

label_for ( question) [protected]

Definition at line 471 of file editlib.php.

Here is the caller graph for this function:


Field Documentation

$checkboxespresent = null [protected]

Definition at line 461 of file editlib.php.


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