Craft Triggers (2.x)

Action extends Model
in package
implements ActionInterface

Interfaces, Classes, Traits and Enums

ActionInterface

Table of Contents

$active  : bool
$dateCreated  : DateTime
$dateUpdated  : DateTime
$handle  : string
$id  : int
$order  : int
$trigger_id  : int
$uid  : string
$_trigger  : TriggerInterface
defineRules()  : array<string|int, mixed>
getConfig()  : array<string|int, mixed>
Get project config
getTrigger()  : TriggerInterface|null
Trigger getter
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

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>

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