ExportController
extends Controller
in package
Tags
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
$dateFrom
public
string
$dateFrom
= ''
Date from filter (d/m/Y)
$dateTo
public
string
$dateTo
= ''
Date to filter (d/m/Y)
$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
Return values
array<string|int, mixed> —parseFilters()
Parse filters from options
protected
parseFilters() : array<string|int, mixed>