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

List of all members.

Public Member Functions

 __construct ($bind='string', $label='String', $length=255, $regex=null, $required=false, $primary=false)
 validate ($value)
 prepare ($value)
 toHtml ($XHTML=true)

Protected Attributes

 $length
 $regex

Detailed Description

Definition at line 6 of file string.php.


Constructor & Destructor Documentation

Orion\Core\Model\String::__construct ( bind = 'string',
label = 'String',
length = 255,
regex = null,
required = false,
primary = false 
)

Definition at line 11 of file string.php.


Member Function Documentation

Orion\Core\Model\String::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 34 of file string.php.

Orion\Core\Model\String::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 39 of file string.php.

Orion\Core\Model\String::validate ( value)

This method is called before every field value usage in DB transaction. Override this method to use a specific value validation process for DB insertion

Returns:
boolean

Reimplemented from Orion\Core\Model\Field.

Definition at line 22 of file string.php.


Member Data Documentation

Orion::Core::Model\String::$length [protected]

Definition at line 8 of file string.php.

Orion::Core::Model\String::$regex [protected]

Definition at line 9 of file string.php.


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