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


Public Member Functions | |
| display_add_field ($recordid=0) | |
| display_search_field ($value= '') | |
| generate_sql ($tablealias, $value) | |
| parse_search_field () | |
| get_file ($recordid, $content=null) | |
| display_browse_field ($recordid, $template) | |
| update_content ($recordid, $value, $name) | |
| text_export_supported () | |
| file_ok ($path) | |
Data Fields | |
| $type = 'file' | |
Definition at line 25 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 28 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 125 of file field.class.php.

| display_search_field | ( | $ | value = '' | ) |
Definition at line 93 of file field.class.php.
| file_ok | ( | $ | relativepath | ) |
| string | $relativepath |
Reimplemented from data_field_base.
Definition at line 202 of file field.class.php.
| generate_sql | ( | $ | tablealias, |
| $ | value | ||
| ) |
Definition at line 97 of file field.class.php.
| get_file | ( | $ | recordid, |
| $ | content = null |
||
| ) |
Definition at line 110 of file field.class.php.


Per default, it is assumed that fields support text exporting. Override this (return false) on fields not supporting text exporting.
Reimplemented from data_field_base.
Definition at line 198 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 152 of file field.class.php.

| $type = 'file' |
Reimplemented from data_field_base.
Definition at line 26 of file field.class.php.