BEObject Class Reference

Basical object. More...

Inheritance diagram for BEObject:

BEAppModel AppModel

List of all members.

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


Detailed Description

Basical object.

Version:
Revision
2354
Modified By:
LastChangedBy
ste
Last Modified: $LastChangedDate
LastChangedDate
2009-10-13 15:43:55 +0200 (mar, 13 ott 2009)

Id
b_e_object.php 2354 2009-10-13 13:43:55Z ste

Definition at line 31 of file b_e_object.php.


Member Function Documentation

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??

Parameters:
int $id
Returns:
boolean

Definition at line 494 of file b_e_object.php.

BEObject.getType ( id  ) 

Model name/type from id.

Parameters:
unknown_type $id

Definition at line 504 of file b_e_object.php.


Member Data Documentation

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.


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

Generated on Tue Jan 12 15:45:35 2010  BEditaBEdita 3.0.1 betula