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


Public Member Functions | |
| display_add_field ($recordid=0) | |
| display_search_field ($value= '') | |
| parse_search_field () | |
| generate_sql ($tablealias, $value) | |
| display_browse_field ($recordid, $template) | |
| update_content ($recordid, $value, $name='') | |
| get_sort_sql ($fieldname) | |
| export_text_value ($record) | |
Data Fields | |
| $type = 'latlong' | |
| $linkoutservices | |
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 46 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 110 of file field.class.php.
| display_search_field | ( | $ | value = '' | ) |
| export_text_value | ( | $ | record | ) |
Per default, return the record's text value only from the "content" field. Override this in fields class if necesarry.
| string | $record |
Reimplemented from data_field_base.
Definition at line 210 of file field.class.php.
| generate_sql | ( | $ | tablealias, |
| $ | value | ||
| ) |
Definition at line 92 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 205 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 172 of file field.class.php.
| $linkoutservices |
array( "Google Maps" => "http://maps.google.com/maps?q=@lat@,+@long@&iwloc=A&hl=en", "Google Earth" => "@wwwroot@/mod/data/field/latlong/kml.php?d=@dataid@&fieldid=@fieldid@&rid=@recordid@", "Geabios" => "http://www.geabios.com/html/services/maps/PublicMap.htm?lat=@lat@&lon=@long@&fov=0.3&title=Moodle%20data%20item", "OpenStreetMap" => "http://www.openstreetmap.org/index.html?lat=@lat@&lon=@long@&zoom=11", "Multimap" => "http://www.multimap.com/map/browse.cgi?scale=200000&lon=@long@&lat=@lat@&icon=x" )
Definition at line 37 of file field.class.php.
| $type = 'latlong' |
Reimplemented from data_field_base.
Definition at line 26 of file field.class.php.