Public Member Functions | Public Attributes | Protected Attributes

MailGroup Class Reference

Mail group object. More...

Inheritance diagram for MailGroup:
BEAppModel AppModel

List of all members.

Public Member Functions

 getGroupsByArea ($area_id=null, $card_id=null, $message_id=null)
 get mail groups divided by area
 getPublicationUrlByGroup ($mail_group_id)
 return url for publication

Public Attributes

 $belongsTo = array("Area")
 $hasAndBelongsToMany

Protected Attributes

 $modelBindings

Detailed Description

Mail group object.

Definition at line 25 of file mail_group.php.


Member Function Documentation

MailGroup::getGroupsByArea ( area_id = null,
card_id = null,
message_id = null 
)

get mail groups divided by area

Parameters:
int $area_id, if it's defined, filter by area_id
int $address_id, if it's defined, filter by address_id
int $message_id, if it's defined, filter by message_id
Returns:
array

Definition at line 55 of file mail_group.php.

MailGroup::getPublicationUrlByGroup ( mail_group_id  ) 

return url for publication

Parameters:
int $mail_group_id
Returns:
string

Definition at line 102 of file mail_group.php.


Member Data Documentation

MailGroup::$hasAndBelongsToMany
Initial value:
 array(

            "Card" => array(
                "joinTable" => "mail_group_cards",
                "with" => "MailGroupCard"
            ),
            
            "MailMessage" => array("joinTable" => "mail_group_messages")
    
        )

Definition at line 30 of file mail_group.php.

MailGroup::$modelBindings [protected]
Initial value:
 array(
        'detailed' => array('Area', 'Card', 'MailMessage'),
        'default' => array('Area'),
        'minimum' => array()
    )

Reimplemented from BEAppModel.

Definition at line 41 of file mail_group.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus