
Public Member Functions | |
| afterFind ($result) | |
| Formatta i dati specifici dopo la ricerca. | |
| beforeSave () | |
| afterSave () | |
| Salva i dati delle associazioni tipo hasMany. | |
| beforeValidate () | |
| Definisce i valori di default. | |
| findObjectTypeId ($id) | |
| isFixed ($id) | |
| Is object fixed?? | |
| getType ($id) | |
| Model name/type from id. | |
| updateTitleDescription ($id, $title, $description) | |
| update title e description only. | |
| getIdFromNickname ($nickname) | |
| getNicknameFromId ($id) | |
Public Attributes | |
| $actsAs = array() | |
| $name = 'BEObject' | |
| $useTable = "objects" | |
| $validate | |
| $belongsTo | |
| $hasMany | |
| $hasAndBelongsToMany | |
Definition at line 31 of file b_e_object.php.
| BEObject.afterSave | ( | ) |
Salva i dati delle associazioni tipo hasMany.
Proposta x salvare le modifiche a title e description di oggetto relazionato se ci sono i dati sufficenti. (giangi)
Definition at line 245 of file b_e_object.php.
| BEObject.isFixed | ( | $ | id | ) |
Is object fixed??
| int | $id |
Definition at line 494 of file b_e_object.php.
| BEObject.getType | ( | $ | id | ) |
Model name/type from id.
| unknown_type | $id |
Definition at line 504 of file b_e_object.php.
| BEObject.$validate |
Initial value:
array( // 'title' => array( // 'rule' => 'notEmpty' // ), 'object_type_id' => array( 'rule' => 'notEmpty' ), 'nickname' => array( 'rule' => 'notEmpty' ), 'lang' => array( 'rule' => 'notEmpty' ), 'ip_created' => array( 'rule' => 'notEmpty' ) )
Definition at line 38 of file b_e_object.php.
| BEObject.$belongsTo |
Initial value:
array(
'ObjectType' =>
array(
'className' => 'ObjectType',
'foreignKey' => 'object_type_id',
'conditions' => ''
),
'UserCreated' =>
array(
'className' => 'User',
'fields' => 'id, userid, realname',
'foreignKey' => 'user_created',
),
'UserModified' =>
array(
'className' => 'User',
'fields' => 'id, userid, realname',
'foreignKey' => 'user_modified',
),
)
Definition at line 56 of file b_e_object.php.
| BEObject.$hasAndBelongsToMany |
Initial value:
array(
'Category' =>
array(
'className' => 'Category',
'joinTable' => 'object_categories',
'foreignKey' => 'object_id',
'associationForeignKey' => 'category_id',
'unique' => true
),
'User' =>
array(
'className' => 'User',
'joinTable' => 'object_users',
'foreignKey' => 'object_id',
'associationForeignKey' => 'user_id',
'unique' => true,
'with' => 'ObjectUser'
)
)
Definition at line 124 of file b_e_object.php.
BEdita 3.0.1 betula