Craft Triggers (2.x)

Log extends Action
in package

Table of Contents

$active  : bool
$dateCreated  : DateTime
$dateUpdated  : DateTime
$handle  : string
$id  : int
$order  : int
$trigger_id  : int
$uid  : string
$_trigger  : TriggerInterface
apply()  : mixed
configTemplate()  : string|null
defineRules()  : array<string|int, mixed>
getConfig()  : array<string|int, mixed>
Get project config
getDescription()  : string
getHandle()  : string
getName()  : string
getTrigger()  : TriggerInterface|null
Trigger getter
hasConfig()  : bool
populateFromData()  : mixed
Populate action from array of data
setData()  : mixed
Data setter
setTrigger()  : mixed
Trigger setter
baseAttributes()  : array<string|int, mixed>
Get all base attributes, all attributes not in this array will be considered data

Properties

$active

public bool $active = true

$dateCreated

public DateTime $dateCreated

$dateUpdated

public DateTime $dateUpdated

$trigger_id

public int $trigger_id

Methods

apply()

public apply(TriggerInterface $trigger, array<string|int, mixed> $data) : mixed
Parameters
$trigger : TriggerInterface
$data : array<string|int, mixed>
Tags
inheritDoc
Return values
mixed

configTemplate()

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

defineRules()

public defineRules() : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

getConfig()

Get project config

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

getDescription()

public getDescription() : string
Tags
inheritDoc
Return values
string

getHandle()

public getHandle() : string
Tags
inheritDoc
Return values
string

getName()

public getName() : string
Tags
inheritDoc
Return values
string

hasConfig()

public hasConfig() : bool
Tags
inheritDoc
Return values
bool

populateFromData()

Populate action from array of data

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

setData()

Data setter

public setData(mixed $data) : mixed
Parameters
$data : mixed
Tags
inheritDoc
Return values
mixed

baseAttributes()

Get all base attributes, all attributes not in this array will be considered data

protected baseAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results