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

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='')
 notemptyfield ($value, $name)
 export_text_value ($record)

Data Fields

 $type = 'url'

Detailed Description

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


Member Function Documentation

display_add_field ( recordid = 0)

Print the relevant form element in the ADD template for this field

object

Parameters:
int$recordid
Returns:
string

Reimplemented from data_field_base.

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

Here is the call graph for this function:

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 93 of file field.class.php.

display_search_field ( value = '')

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

export_text_value ( record)

Per default, return the record's text value only from the "content" field. Override this in fields class if necesarry.

Parameters:
string$record
Returns:
string

Reimplemented from data_field_base.

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

generate_sql ( tablealias,
value 
)

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

notemptyfield ( value,
name 
)

Check if a field from an add form is empty

Parameters:
mixed$value
mixed$name
Returns:
bool

Reimplemented from data_field_base.

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

Here is the call graph for this function:

Definition at line 80 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 121 of file field.class.php.

Here is the call graph for this function:


Field Documentation

$type = 'url'

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