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

List of all members.

Public Member Functions

 __construct ($bind, $label, $model, $separator=',', $namefield='name', $required=false)
 onDelete ($value)
 onSave ($value)
 onUpdate ($newvalue, $oldvalue)
 toHtml ($XHTML=true)

Protected Member Functions

 saveTags ($data)
 removeTags ($data)

Protected Attributes

 $separator
 $namefield
 $required

Detailed Description

Definition at line 6 of file tags.php.


Constructor & Destructor Documentation

Orion\Core\Model\Tags::__construct ( bind,
label,
model,
separator = ',',
namefield = 'name',
required = false 
)

Definition at line 14 of file tags.php.


Member Function Documentation

Orion\Core\Model\Tags::onDelete ( value)

Definition at line 23 of file tags.php.

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

Definition at line 27 of file tags.php.

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

Definition at line 31 of file tags.php.

Orion\Core\Model\Tags::removeTags ( data) [protected]

Decrease tags counters and delete tag when deleted entry was the latest one using it

Parameters:
$datathe tag list as a string

Definition at line 74 of file tags.php.

Orion\Core\Model\Tags::saveTags ( data) [protected]

Parse and save/update tags of model into their respective table (defined with PARAM_TAGS)

Parameters:
$datathe tag list as a string
Returns:
boolean success

Definition at line 50 of file tags.php.

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

Definition at line 35 of file tags.php.


Member Data Documentation

Orion::Core::Model\Tags::$namefield [protected]

Definition at line 9 of file tags.php.

Orion::Core::Model\Tags::$required [protected]

Reimplemented from Orion\Core\Model\Field.

Definition at line 10 of file tags.php.

Orion::Core::Model\Tags::$separator [protected]

Definition at line 8 of file tags.php.


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