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

List of all members.

Public Member Functions

 __construct ($bind='category', $label='Category', $model='CategoryHandler', $rightfield='id', $rightfieldlabel='name', $required=true, $primary=false)
 toHtml ($XHTML=true)
 getLinkedTable ()
 getModel ()
 getRightfield ()
 getRightfieldlabel ()

Protected Attributes

 $model
 $rightfield
 $rightfieldlabel

Detailed Description

Definition at line 6 of file link.php.


Constructor & Destructor Documentation

Orion\Core\Model\Link::__construct ( bind = 'category',
label = 'Category',
model = 'CategoryHandler',
rightfield = 'id',
rightfieldlabel = 'name',
required = true,
primary = false 
)

Link model field

Parameters:
string$bind
string$label
boolean$primary

Reimplemented in Orion\Core\Model\LinkOneOne.

Definition at line 18 of file link.php.


Member Function Documentation

Orion\Core\Model\Link::getLinkedTable ( )

Definition at line 57 of file link.php.

Orion\Core\Model\Link::getModel ( )

Definition at line 63 of file link.php.

Orion\Core\Model\Link::getRightfield ( )

Definition at line 68 of file link.php.

Orion\Core\Model\Link::getRightfieldlabel ( )

Definition at line 73 of file link.php.

Orion\Core\Model\Link::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.

Reimplemented in Orion\Core\Model\Tags, Orion\Core\Model\LinkOneMany, and Orion\Core\Model\LinkOneOne.

Definition at line 31 of file link.php.


Member Data Documentation

Orion::Core::Model\Link::$model [protected]

Definition at line 8 of file link.php.

Orion::Core::Model\Link::$rightfield [protected]

Definition at line 9 of file link.php.

Orion::Core::Model\Link::$rightfieldlabel [protected]

Definition at line 10 of file link.php.


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