Orion PHP  0.11.12
The PHP5.3 framework
Orion\Core\Model\Image Class Reference
+ Inheritance diagram for Orion\Core\Model\Image:

List of all members.

Public Member Functions

 __construct ($bind='image', $label='Image', $prefix='', $required=false)
 prepare ($value)
 onSave ($value)
 onDelete ($oldvalue)
 onUpdate ($oldvalue, $newvalue)
 toHtml ($XHTML=true)

Protected Attributes

 $image = null
 $prefix

Detailed Description

Definition at line 7 of file image.php.


Constructor & Destructor Documentation

Orion\Core\Model\Image::__construct ( bind = 'image',
label = 'Image',
prefix = '',
required = false 
)

Definition at line 13 of file image.php.


Member Function Documentation

Orion\Core\Model\Image::onDelete ( oldvalue)

Definition at line 52 of file image.php.

Orion\Core\Model\Image::onSave ( value)

Definition at line 34 of file image.php.

Orion\Core\Model\Image::onUpdate ( oldvalue,
newvalue 
)

Definition at line 58 of file image.php.

Orion\Core\Model\Image::prepare ( value)

This method is called before every field value usage in DB transaction. Override this method to define a specific way of preparing the field value for DB insertion

Returns:
string

Reimplemented from Orion\Core\Model\Field.

Definition at line 24 of file image.php.

Orion\Core\Model\Image::toHtml ( XHTML = true)

This method is called before DB deletion action. Override this method to define a specific pre-deletion behaviour

Parameters:
mixed$oldvalueThe old field value (before deletion occurs) This method is called before DB insertion action Override this method to define a specific pre-insertion behaviour
mixed$valueThe new field value (before insertion occurs) This method is called before DB update action Override this method to define a specific pre-update behaviour
mixed$oldvalueThe old field value (before update occurs)
mixed$valueThe new field value (before update occurs) Override this function to define a specific (x)HTML form field to use during model-to-form translation. By default, this function returns a hidden form field.
boolean$XHTML
Returns:
string

Reimplemented from Orion\Core\Model\Field.

Definition at line 67 of file image.php.


Member Data Documentation

Orion::Core::Model\Image::$image = null [protected]

Definition at line 10 of file image.php.

Orion::Core::Model\Image::$prefix [protected]

Definition at line 11 of file image.php.


The documentation for this class was generated from the following file: