Craft Activity (2.x)

Settings extends Model
in package

Table of Contents

EVENT_REGISTER_DELETE_TYPES_OPTIONS  = 'event-register-delete-types'
$autoDeleteLogsThreshold  : string
$deleteLogsWithSite  : bool
$deleteLogsWithUser  : bool
$deleteTypes  : array<string|int, mixed>
$ignoreNoElementChanges  : bool
$ignorePropagate  : bool
$ignoreResave  : bool
$ignoreRules  : array<string|int, mixed>
$ignoreUpdateSlugs  : bool
$showUserIP  : bool
$showUsersFullName  : bool
$trackConfigFieldsChanges  : bool
$trackElementFieldsChanges  : bool
$_deleteTypesOptions  : mixed
getDeleteTypesOptions()  : array<string|int, mixed>
Get the options for the activity types that can be deleted
isTypeIgnored()  : bool
Is a log type ignored by the set of rules
shouldDeleteActivity()  : bool
Should a type of activity be deleted

Constants

EVENT_REGISTER_DELETE_TYPES_OPTIONS

public mixed EVENT_REGISTER_DELETE_TYPES_OPTIONS = 'event-register-delete-types'

Properties

$autoDeleteLogsThreshold

public string $autoDeleteLogsThreshold = ''

$deleteLogsWithSite

public bool $deleteLogsWithSite = false
Tags
since
2.4.0

$deleteLogsWithUser

public bool $deleteLogsWithUser = false

$deleteTypes

public array<string|int, mixed> $deleteTypes
Tags
since
2.4.0

$ignoreNoElementChanges

public bool $ignoreNoElementChanges = false

$ignorePropagate

public bool $ignorePropagate = true

$ignoreResave

public bool $ignoreResave = true

$ignoreRules

public array<string|int, mixed> $ignoreRules = [['type' => 'entryMoved', 'active' => 1, 'request' => ''], ['type' => 'categoryMoved', 'active' => 1, 'request' => ''], ['type' => 'userLoggedOut', 'active' => 1, 'request' => '']]

$ignoreUpdateSlugs

public bool $ignoreUpdateSlugs = true

$showUserIP

public bool $showUserIP = false
Tags
since
2.3.4

$showUsersFullName

public bool $showUsersFullName = false

$trackConfigFieldsChanges

public bool $trackConfigFieldsChanges = true

$trackElementFieldsChanges

public bool $trackElementFieldsChanges = true

$_deleteTypesOptions

protected mixed $_deleteTypesOptions

Methods

getDeleteTypesOptions()

Get the options for the activity types that can be deleted

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

isTypeIgnored()

Is a log type ignored by the set of rules

public isTypeIgnored(string $handle) : bool
Parameters
$handle : string
Return values
bool

shouldDeleteActivity()

Should a type of activity be deleted

public shouldDeleteActivity(string $type) : bool
Parameters
$type : string
Return values
bool

Search results