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

Public Member Functions

 update_content ($recordid, $value, $name='')
 display_browse_field ($recordid, $template)
 display_search_field ($value= '')
 parse_search_field ()
 generate_sql ($tablealias, $value)
 get_sort_sql ($fieldname)

Data Fields

 $type = 'number'

Detailed Description

Definition at line 25 of file field.class.php.


Member Function Documentation

display_browse_field ( recordid,
template 
)

Display the content of the field in browse mode

object

Parameters:
int$recordid
object$template
Returns:
bool|string

Reimplemented from data_field_base.

Definition at line 48 of file field.class.php.

Here is the call graph for this function:

display_search_field ( value = '')

Definition at line 72 of file field.class.php.

generate_sql ( tablealias,
value 
)

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

Parameters:
string$fieldname
Returns:
string $fieldname

Reimplemented from data_field_base.

Definition at line 91 of file field.class.php.

Definition at line 76 of file field.class.php.

Here is the call graph for this function:

update_content ( recordid,
value,
name = '' 
)

Update the content of one data field in the data_content table object

Parameters:
int$recordid
mixed$value
string$name
Returns:
bool

Reimplemented from data_field_base.

Definition at line 28 of file field.class.php.


Field Documentation

$type = 'number'

Reimplemented from data_field_base.

Definition at line 26 of file field.class.php.


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