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


Public Member Functions | |
| display_add_field ($recordid=0) | |
| display_search_field ($value=0) | |
| generate_sql ($tablealias, $value) | |
| parse_search_field () | |
| update_content ($recordid, $value, $name='') | |
| display_browse_field ($recordid, $template) | |
| get_sort_sql ($fieldname) | |
Data Fields | |
| $type = 'date' | |
| $day = 0 | |
| $month = 0 | |
| $year = 0 | |
Definition at line 29 of file field.class.php.
| display_add_field | ( | $ | recordid = 0 | ) |
Print the relevant form element in the ADD template for this field
object
| int | $recordid |
Reimplemented from data_field_base.
Definition at line 37 of file field.class.php.

| display_browse_field | ( | $ | recordid, |
| $ | template | ||
| ) |
Display the content of the field in browse mode
object
| int | $recordid | |
| object | $template |
Reimplemented from data_field_base.
Definition at line 114 of file field.class.php.

| display_search_field | ( | $ | value = 0 | ) |
| generate_sql | ( | $ | tablealias, |
| $ | value | ||
| ) |
Definition at line 66 of file field.class.php.
| get_sort_sql | ( | $ | fieldname | ) |
Returns the SQL needed to refer to the column. Some fields may need to CAST() etc.
| string | $fieldname |
Reimplemented from data_field_base.
Definition at line 122 of file field.class.php.
| update_content | ( | $ | recordid, |
| $ | value, | ||
| $ | name = '' |
||
| ) |
Update the content of one data field in the data_content table object
| int | $recordid | |
| mixed | $value | |
| string | $name |
Reimplemented from data_field_base.
Definition at line 90 of file field.class.php.

| $day = 0 |
Definition at line 33 of file field.class.php.
| $month = 0 |
Definition at line 34 of file field.class.php.
| $type = 'date' |
Reimplemented from data_field_base.
Definition at line 31 of file field.class.php.
| $year = 0 |
Definition at line 35 of file field.class.php.