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

List of all members.

Public Member Functions

 __construct ($bind='bool', $label='Boolean', $required=false)
 isEmptyValue ($value)
 prepare ($value)
 toHtml ($XHTML=true)

Detailed Description

Definition at line 5 of file bool.php.


Constructor & Destructor Documentation

Orion\Core\Model\Bool::__construct ( bind = 'bool',
label = 'Boolean',
required = false 
)

Definition at line 7 of file bool.php.


Member Function Documentation

Orion\Core\Model\Bool::isEmptyValue ( value)

Check if the field's value is empty (override for specific cases)

Returns:
boolean

Reimplemented from Orion\Core\Model\Field.

Definition at line 15 of file bool.php.

Orion\Core\Model\Bool::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 20 of file bool.php.

Orion\Core\Model\Bool::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 25 of file bool.php.


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