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

Public Member Functions

 display_add_field ($recordid=0)
 get_file ($recordid, $content=null)
 display_search_field ($value= '')
 parse_search_field ()
 generate_sql ($tablealias, $value)
 display_browse_field ($recordid, $template)
 update_field ()
 update_content ($recordid, $value, $name)
 update_thumbnail ($content, $file)
 text_export_supported ()
 file_ok ($path)

Data Fields

 $type = 'picture'
 $previewwidth = 50
 $previewheight = 50

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

Here is the call graph for this function:

display_search_field ( value = '')

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

file_ok ( relativepath)
Parameters:
string$relativepath
Returns:
bool false

Reimplemented from data_field_base.

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

generate_sql ( tablealias,
value 
)

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

get_file ( recordid,
content = null 
)

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Per default, it is assumed that fields support text exporting. Override this (return false) on fields not supporting text exporting.

Returns:
bool true

Reimplemented from data_field_base.

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

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

Here is the call graph for this function:

Update a field in the database

object

Returns:
bool

Reimplemented from data_field_base.

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

Here is the call graph for this function:

update_thumbnail ( content,
file 
)

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

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$previewheight = 50

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

$previewwidth = 50

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

$type = 'picture'

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