Class Campaign
A Campaign represents a one time mailing to a list of contacts.
When a campaign is created, a contact list must be specified. When a campaing is 'launched' a duplicate list is created leaving the original unchanged. The duplicate 'campaign' list will keep track of which contacts were sent email, who opened the mail, and who unsubscribed. A campaign is 'active' after it has been launched and ready to send mail. A campaign is 'complete' when all applicable email has been sent. This is the model class for table "x2_campaigns".
- CComponent
- CModel implements IteratorAggregate, ArrayAccess
- CActiveRecord
- X2ActiveRecord
- X2Model
- Campaign
Located at x2engine/protected/modules/marketing/models/Campaign.php
public static
static
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
string
|
#
getAttributeLabel( string $attribute )
Returns the text label for the specified attribute. This method overrides the parent implementation by supporting returning the label defined in relational object. In particular, if the attribute name is in the form of "post.author.name", then this method will derive the label from the "author" relation's "name" attribute. |
public static
|
|
public
Array
|
|
public
|
#
setX2Fields( array & $data, boolean $filter = false, boolean $bypassPermissions = false )
Override of |
public static
|
|
public
|
getAllErrorMessages(),
getBehaviorRules(),
getFormatter(),
getInputRenderer(),
getName(),
renderAttribute(),
setFormatter(),
setInputRenderer()
|
__call(),
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
addRelatedRecord(),
afterFindInternal(),
applyScopes(),
attributeNames(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeFindInternal(),
cache(),
count(),
countByAttributes(),
countBySql(),
defaultScope(),
delete(),
deleteAll(),
deleteAllByAttributes(),
deleteByPk(),
equals(),
exists(),
find(),
findAllByAttributes(),
findAllByPk(),
findAllBySql(),
findByPk(),
findBySql(),
getActiveFinder(),
getActiveRelation(),
getAttributes(),
getCommandBuilder(),
getDbConnection(),
getDbCriteria(),
getIsNewRecord(),
getMetaData(),
getOldPrimaryKey(),
getPrimaryKey(),
getRelated(),
getTableAlias(),
getTableSchema(),
hasAttribute(),
hasRelated(),
init(),
instantiate(),
offsetExists(),
onAfterDelete(),
onAfterFind(),
onAfterSave(),
onBeforeCount(),
onBeforeDelete(),
onBeforeFind(),
onBeforeSave(),
populateRecord(),
populateRecords(),
primaryKey(),
refresh(),
refreshMetaData(),
resetScope(),
saveAttributes(),
saveCounters(),
scopes(),
setAttribute(),
setDbCriteria(),
setIsNewRecord(),
setOldPrimaryKey(),
setPrimaryKey(),
setTableAlias(),
together(),
update(),
updateAll(),
updateByPk(),
updateCounters(),
with()
|
addError(),
addErrors(),
afterConstruct(),
afterValidate(),
beforeValidate(),
clearErrors(),
createValidators(),
generateAttributeLabel(),
getError(),
getErrors(),
getIterator(),
getSafeAttributeNames(),
getScenario(),
getValidatorList(),
getValidators(),
hasErrors(),
isAttributeRequired(),
isAttributeSafe(),
offsetGet(),
offsetSet(),
offsetUnset(),
onAfterConstruct(),
onAfterValidate(),
onBeforeValidate(),
onUnsafeAttribute(),
setAttributes(),
setScenario(),
unsetAttributes(),
validate()
|
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
integer |
CAMPAIGN_TYPE_DROPDOWN
|
107 |
BELONGS_TO,
HAS_MANY,
HAS_ONE,
MANY_MANY,
STAT
|
public
true
|
$supportsWorkflow | false |
#
if this model can have workflows associated with it, false otherwise |
$fieldInputRendererClass
|
$db
|
$fieldPermissions,
$isExemptFromFieldLevelPermissions,
$myModelName,
$readableAttributeNames,
$relatedX2Models
|
$attributes,
$commandBuilder,
$dbConnection,
$dbCriteria,
$isNewRecord,
$metaData,
$oldPrimaryKey,
$primaryKey,
$tableAlias,
$tableSchema
|
$errors,
$iterator,
$safeAttributeNames,
$scenario,
$validatorList,
$validators
|