Card Class Reference

Addressbook card object. More...

Inheritance diagram for Card:

BEAppObjectModel BEAppModel AppModel

List of all members.

Public Member Functions

 beforeValidate ()
 beforeSave ()
 afterSave ($created)

Public Attributes

 $searchFields
 $actsAs
 $hasAndBelongsToMany
 $hasMany
 $validate

Protected Attributes

 $modelBindings


Detailed Description

Addressbook card object.

Version:
Revision
2372
Modified By:
LastChangedBy
ste
Last Modified: $LastChangedDate
LastChangedDate
2009-10-21 13:02:25 +0200 (mer, 21 ott 2009)

Id
card.php 2372 2009-10-21 11:02:25Z ste

Definition at line 31 of file card.php.


Member Data Documentation

Card.$searchFields

Initial value:

 array("title" => 8 , "description" => 4, 
                "website" => 6, "email" => 6, "email2" => 5,  
                "street_address" => 3,"company_name" => 3, "city" => 4)

Definition at line 33 of file card.php.

Card.$actsAs

Initial value:

 array(
                        'CompactResult'                 => array("MailGroup", "GeoTag")
        )

Reimplemented from BEAppObjectModel.

Definition at line 37 of file card.php.

Card.$modelBindings [protected]

Initial value:

 array( 
                                "detailed" =>  array("BEObject" => array("ObjectType", 
                                                                                                                        "UserCreated", 
                                                                                                                        "UserModified", 
                                                                                                                        "Permissions",
                                                                                                                        "ObjectProperty",
                                                                                                                        "LangText",
                                                                                                                        "RelatedObject",
                                                                                                                        "Category",
                                                                                                                        "Annotation",
                                                                                                                        "User"), 
                                                                        "MailGroup", "GeoTag"),

                                "default" => array("BEObject" => array("ObjectProperty", 
                                                                        "LangText", "ObjectType", 
                                                                        "Category", "RelatedObject","Annotation" )),

                                "minimum" => array("BEObject" => array("ObjectType"))           
                )

Reimplemented from BEAppModel.

Definition at line 41 of file card.php.

Card.$hasAndBelongsToMany

Initial value:

 array(
                        "MailGroup" => array(
                                                        "joinTable"     => "mail_group_cards",
                                                        "with" => "MailGroupCard"
                                                )
                )

Definition at line 61 of file card.php.

Card.$hasMany

Initial value:

 array(
                        'GeoTag' =>
                                array(
                                        'foreignKey'    => 'object_id',
                                        'dependent'             => true
                                )
                )

Definition at line 68 of file card.php.

Card.$validate

Initial value:

 array(
                'email' => array(
                        'rule' => 'email',
                        'allowEmpty' => true,
                        'message' => 'Please supply a valid email address.'
                ),
                'email2' => array(
                        'rule' => 'email',
                        'allowEmpty' => true,
                        'message' => 'Please supply a valid email address.'
                ),
                'newsletter_email' => array(
                        'rule' => 'email',
                        'allowEmpty' => true,
                        'message' => 'Please supply a valid email address.'
                )
        )

Definition at line 77 of file card.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