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

List of all members.

Public Member Functions

 __construct ($bind='select', $label='List', $data=array(), $required=true)
 toHtml ($XHTML=true)
 getData ()

Protected Attributes

 $data

Detailed Description

Definition at line 5 of file select.php.


Constructor & Destructor Documentation

Orion\Core\Model\Select::__construct ( bind = 'select',
label = 'List',
data = array(),
required = true 
)

List model field

Parameters:
string$bind
string$label
array$dataThe associative data array. (keys are the values' label)
boolean$primary

Definition at line 15 of file select.php.


Member Function Documentation

Orion\Core\Model\Select::getData ( )

Definition at line 39 of file select.php.

Orion\Core\Model\Select::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 24 of file select.php.


Member Data Documentation

Orion::Core::Model\Select::$data [protected]

Definition at line 7 of file select.php.


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