Craft Triggers (1.x)

CpTriggersController extends Controller
in package

Table of Contents

EVENT_EDIT_TRIGGER  = 'event-edit-trigger'
actionAdd()  : Response
Add trigger action
actionDelete()  : Response
Delete trigger action
actionEdit()  : Response
Edit trigger action
actionIndex()  : Response
Triggers dashboard action
actionNewAction()  : Response
New action action
actionNewCondition()  : Response
New condition action
actionSave()  : Response
Save trigger action
actionTriggerConfig()  : Reponse
Trigger config action
actionValidateAction()  : Response
Valdiate action action
actionValidateCondition()  : Response
Validate condition action
beforeAction()  : mixed
All actions require permission 'accessPlugin-triggers' and 'manageTriggers'

Constants

Methods

actionAdd()

Add trigger action

public actionAdd([Trigger|null $trigger = null ]) : Response
Parameters
$trigger : Trigger|null = null
Return values
Response

actionDelete()

Delete trigger action

public actionDelete(int $id) : Response
Parameters
$id : int
Return values
Response

actionEdit()

Edit trigger action

public actionEdit(int $id) : Response
Parameters
$id : int
Return values
Response

actionIndex()

Triggers dashboard action

public actionIndex() : Response
Return values
Response

actionNewAction()

New action action

public actionNewAction() : Response
Return values
Response

actionNewCondition()

New condition action

public actionNewCondition() : Response
Return values
Response

actionSave()

Save trigger action

public actionSave() : Response
Return values
Response

actionTriggerConfig()

Trigger config action

public actionTriggerConfig() : Reponse
Return values
Reponse

actionValidateAction()

Valdiate action action

public actionValidateAction() : Response
Return values
Response

actionValidateCondition()

Validate condition action

public actionValidateCondition() : Response
Return values
Response

beforeAction()

All actions require permission 'accessPlugin-triggers' and 'manageTriggers'

public beforeAction(mixed $action) : mixed
Parameters
$action : mixed
Return values
mixed

Search results