Class MailMessage
Mail message content
- Model
- AppModel
- BEAppModel
- BEAppObjectModel
- BeditaContentModel
- MailMessage
Methods summary
public
|
|
public
mixed,
|
#
getCompleteSender( integer $id = null, string $senderEmail = null, string $senderName = null )
return a complete sender email address "sender name sender@bedita.com |
Methods inherited from BEAppObjectModel
apiTransformer()
,
arrangeDataForClone()
,
checkType()
,
cloneObject()
,
field()
,
getTypeId()
,
save()
,
saveField()
,
updateHasManyAssoc()
,
validateContent()
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
email()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()
Properties summary
public
array
|
$actsAs
|
#
array(
'CompactResult' => array("MailGroup"),
'ForeignDependenceSave' => array('Content'),
'DeleteObject' => 'objects',
)
|
public
array
|
$hasOne
|
#
array(
'BEObject' => array(
'className' => 'BEObject',
'conditions' => '',
'foreignKey' => 'id',
'dependent' => true
),
'Content' => array(
'className' => 'Content',
'conditions' => '',
'foreignKey' => 'id',
'dependent' => true
)
)
|
public
array
|
$hasAndBelongsToMany
|
#
array(
'MailGroup' => array (
'joinTable' => 'mail_group_messages'
)
)
|
protected
array
|
$modelBindings
|
#
array(
"detailed" => array(
"BEObject" => array(
"ObjectType",
"UserCreated",
"UserModified",
"Permission",
"RelatedObject",
"Annotation",
"Version" => array("User.realname", "User.userid")
),
"Content",
"MailGroup"
),
"default" => array(
"BEObject" => array("ObjectType", "RelatedObject"),
"Content"
),
"mailgroup" => array("MailGroup"),
"minimum" => array(
"BEObject" => array("ObjectType"),
"Content"
)
)
|
public
array
|
$validate
|
#
array(
"subject" => array(
"rule" => array('custom', '/.+/') ,
"required" => true,
"message" => "Subject required"
),
"sender" => array(
"rule" => "email",
"required" => true,
"message" => "Please supply a valid email address."
),
"reply_to" => array(
"rule" => "email",
"allowEmpty" => true,
"message" => "Please supply a valid email address."
),
"bounce_to" => array(
"rule" => "email",
"allowEmpty" => true,
"message" => "Please supply a valid email address."
)
)
|