Craft Activity (2.x)

ExportController extends Controller
in package

Tags
since
2.3.0

Table of Contents

$dateFrom  : string
$dateTo  : string
$folder  : string
$name  : string
$types  : array<string|int, mixed>
$users  : array<string|int, mixed>
actionIndex()  : int
Export activity logs to a file
options()  : array<string|int, mixed>
parseFilters()  : array<string|int, mixed>
Parse filters from options

Properties

$folder

public string $folder = '@storage/activity-exports'

Export folder

$name

public string $name = 'export-[date]'

Name of the file. [date] will be replaced by a datetime

$types

public array<string|int, mixed> $types = []

Log types filter (log type handles, comma separated). eg pluginEnabled,pluginDisabled

$users

public array<string|int, mixed> $users = []

User filter (user ids, comma separated) eg 1,2

Methods

actionIndex()

Export activity logs to a file

public actionIndex(string $type) : int
Parameters
$type : string

type of export (text, pdf etc)

Return values
int

options()

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

parseFilters()

Parse filters from options

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

Search results