Craft Triggers (1.x)

ConditionInterface

Table of Contents

check()  : bool
Check if this condition applies
configTemplate()  : string
Get configuration template
forTriggers()  : array<string|int, mixed>|null
To which triggers this condition applies
getConfig()  : array<string|int, mixed>
Get project config
getDescription()  : atring
Description getter
getHandle()  : string
Handle getter
getName()  : string
Name getter
getTrigger()  : TriggerInterface|null
Trigger getter
hasConfig()  : bool
Does this condition have configuration
populateFromData()  : mixed
Populate condition from array of data
setData()  : mixed
Data setter
setTrigger()  : mixed
Trigger setter

Methods

configTemplate()

Get configuration template

public configTemplate() : string
Return values
string

forTriggers()

To which triggers this condition applies

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

getConfig()

Get project config

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

getDescription()

Description getter

public getDescription() : atring
Return values
atring

hasConfig()

Does this condition have configuration

public hasConfig() : bool
Return values
bool

populateFromData()

Populate condition from array of data

public populateFromData(array<string|int, mixed> $data) : mixed
Parameters
$data : 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