Class MarketingController
Controller to handle creating and mailing campaigns.
- CComponent
- CBaseController
- CController
- X2Controller
- x2base
- MarketingController
Located at x2engine/protected/modules/marketing/controllers/MarketingController.php
public
array
|
#
behaviors( )
Returns a list of behaviors that this controller should behave as. The return value should be an array of behavior configurations indexed by behavior names. Each behavior configuration can be either a string specifying the behavior class or an array of the following structure: 'behaviorName'=>array( 'class'=>'path.to.BehaviorClass', 'property1'=>'value1', 'property2'=>'value2', ) |
public
array
|
#
accessRules( )
Returns the access rules for this controller. Override this method if you use the filterAccessControl accessControl filter. |
public
array
|
#
actions( )
Returns a list of external action classes. Array keys are action IDs, and array values are the corresponding action class in dot syntax (e.g. 'edit'=>'application.controllers.article.EditArticle') or arrays representing the configuration of the actions, such as the following, return array( 'action1'=>'path.to.Action1Class', 'action2'=>array( 'class'=>'path.to.Action2Class', 'property1'=>'value1', 'property2'=>'value2', ), ); Derived classes may override this method to declare external actions. |
public
|
|
public
string
|
#
actionGetItems( mixed $modelType )
Returns a JSON array of the names of all campaigns filtered by a search term. |
public
|
|
public
|
#
actionViewContent( integer $id )
Displays the content field (email template) for a particular model. |
public
type
|
#
loadModel( type $id )
Override of |
public
|
#
actionCreate( )
Creates a new model. If creation is successful, the browser will be redirected to the 'view' page. |
public
|
|
public
|
#
actionUpdate( integer $id )
Updates a particular model. If update is successful, the browser will be redirected to the 'view' page. |
public
|
#
actionDelete( integer $id )
Deletes a particular model. If deletion is successful, the browser will be redirected to the 'index' page. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
actionMailIndividual( type $campaignId, type $itemId )
Sends an individual email to an item in a campaign/newsletter list. |
public
|
|
public
|
#
actionClick( integer $uid, string $type, string $url = null, string $email = null )
Track when an email is viewed, a link is clicked, or the recipient unsubscribes |
public
|
|
public
|
|
public
|
|
public
|
#
insertMenu( array $selectOptions = array(),
Create a menu for Marketing |
__construct(),
afterAction(),
afterRender(),
beforeRender(),
clearPageStates(),
createAbsoluteUrl(),
createAction(),
createActionFromMap(),
createUrl(),
filterAccessControl(),
filterAjaxOnly(),
filterPostOnly(),
forward(),
getAction(),
getActionParams(),
getCachingStack(),
getClips(),
getId(),
getLayoutFile(),
getModule(),
getPageState(),
getRoute(),
getUniqueId(),
getViewFile(),
getViewPath(),
init(),
invalidActionParams(),
isCachingStackEmpty(),
loadPageStates(),
missingAction(),
processDynamicOutput(),
processOutput(),
recordCachingAction(),
redirect(),
refresh(),
renderClip(),
renderDynamic(),
renderDynamicInternal(),
renderPartial(),
renderText(),
replaceDynamicOutput(),
run(),
runAction(),
runActionWithFilters(),
savePageStates(),
setAction(),
setPageState()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
STATE_INPUT_NAME
|
public
string
|
$modelClass | 'Campaign' |
$actionMenu,
$breadcrumbs,
$layout,
$leftPortlets,
$leftWidgets,
$menu,
$noBackdrop,
$portlets
|
$defaultAction
|
$action,
$actionParams,
$cachingStack,
$clips,
$id,
$module,
$pageTitle,
$route,
$uniqueId,
$viewPath
|