Craft Triggers (1.x)

TriggerInterface

Table of Contents

applyActions()  : mixed
Apply trigger conditions
checkConditions()  : bool
Check trigger conditions
configTemplate()  : string|null
Get configuration template
getActions()  : array<string|int, mixed>
Get actions
getActiveActions()  : array<string|int, mixed>
Get active actions
getActiveConditions()  : array<string|int, mixed>
Get active conditions
getConditions()  : array<string|int, mixed>
Conditions getter
getConfig()  : array<string|int, mixed>
Get project config
getHandle()  : string
Handle getter
getInstructions()  : string
Get instructions
getTip()  : string
Get tip
getType()  : string
Type getter
hasConfig()  : bool
Does this trigger have config
initialize()  : mixed
Initialize trigger
populateFromData()  : mixed
Populate trigger from array of data
setActions()  : mixed
Actions setter
setConditions()  : mixed
Conditions setter
setData()  : mixed
Data setter

Methods

applyActions()

Apply trigger conditions

public applyActions(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>
Return values
mixed

checkConditions()

Check trigger conditions

public checkConditions(array<string|int, mixed> $data) : bool
Parameters
$data : array<string|int, mixed>
Return values
bool

configTemplate()

Get configuration template

public configTemplate() : string|null
Return values
string|null

getActions()

Get actions

public getActions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getActiveActions()

Get active actions

public getActiveActions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getActiveConditions()

Get active conditions

public getActiveConditions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getConditions()

Conditions getter

public getConditions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getConfig()

Get project config

public getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHandle()

Handle getter

public getHandle() : string
Return values
string

getInstructions()

Get instructions

public getInstructions() : string
Return values
string

getType()

Type getter

public getType() : string
Return values
string

hasConfig()

Does this trigger have config

public hasConfig() : bool
Return values
bool

initialize()

Initialize trigger

public initialize() : mixed
Return values
mixed

populateFromData()

Populate trigger from array of data

public populateFromData(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>
Return values
mixed

setActions()

Actions setter

public setActions(array<string|int, mixed> $actions) : mixed
Parameters
$actions : array<string|int, mixed>
Return values
mixed

setConditions()

Conditions setter

public setConditions(array<string|int, mixed> $conditions) : mixed
Parameters
$conditions : array<string|int, mixed>
Return values
mixed

setData()

Data setter

public setData(array<string|int, mixed>|string|null $data) : mixed
Parameters
$data : array<string|int, mixed>|string|null
Return values
mixed

Search results