Documentation

Archive
in package

FinalYes

Legacy request tracking archive built on the slothsoft DBMS layer.

Included for historical compatibility only. This API is deprecated and should not be used in new code.

Tags
author

Daniel Schulz

since
2017-12-28

Table of Contents

Constants

PREPARE_DELETE  : mixed = 4
PREPARE_OK  : mixed = 1
PREPARE_UPDATE  : mixed = 2

Properties

$backupTable  : mixed
$config  : mixed
$db  : mixed
$logTableDefault  : mixed
$logTableList  : mixed
$tempTable  : mixed

Methods

__construct()  : mixed
backup()  : void
getConfig()  : array<string|int, mixed>
getCurrent()  : array<string|int, mixed>
getLogTableByStrategy()  : LogTable
getLogTableByURI()  : LogTable
getLogTableList()  : array<string|int, mixed>
getOutdated()  : array<string|int, mixed>
import()  : int
insertTemp()  : mixed
install()  : void
parse()  : int
updateOutdated()  : void
fixIndex()  : void
fixRollback()  : bool
fixTemp()  : int
prepareData()  : int

Constants

PREPARE_DELETE

public mixed PREPARE_DELETE = 4

PREPARE_OK

public mixed PREPARE_OK = 1

PREPARE_UPDATE

public mixed PREPARE_UPDATE = 2

Properties

$backupTable

protected mixed $backupTable = 'backup'

$config

protected mixed $config = ['version' => 12, 'parseLimit' => 1000, 'defaultColumn' => ['type' => 'text', 'size' => null, 'visible' => false, 'groupable' => false, 'searchable' => false], 'logColumns' => ['SERVER_NAME' => ['type' => 'tinytext', 'size' => 32, 'groupable' => true], 'REQUEST_TURING' => ['type' => 'tinytext', 'size' => 8, 'groupable' => true], 'REQUEST_LANGUAGE' => ['type' => 'tinytext', 'size' => 8, 'groupable' => true], 'REQUEST_TIME_DATE' => ['type' => 'tinytext', 'size' => 17, 'visible' => true, 'searchable' => true], 'RESPONSE_TIME' => ['type' => 'double', 'visible' => true], 'RESPONSE_MEMORY' => ['type' => 'float', 'visible' => true], 'REMOTE_ADDR' => ['type' => 'tinytext', 'size' => 15, 'visible' => true, 'searchable' => true], 'RESPONSE_STATUS' => [ 'type' => 'smallint', 'visible' => true, // 'groupable' => true, 'searchable' => true, ], 'REQUEST_METHOD' => [ 'type' => 'tinytext', 'size' => 8, 'visible' => true, // 'groupable' => true, 'searchable' => true, ], 'HTTP_HOST' => [ 'type' => 'tinytext', 'size' => 32, 'visible' => true, // 'groupable' => true, 'searchable' => true, ], 'REQUEST_URI' => ['type' => 'text', 'size' => 128, 'visible' => true, 'searchable' => true], 'HTTP_USER_AGENT' => ['type' => 'text', 'size' => 128, 'visible' => true, 'searchable' => true], 'HTTP_ACCEPT_LANGUAGE' => ['type' => 'text', 'size' => 32, 'visible' => true, 'searchable' => true], 'RESPONSE_LANGUAGE' => [ 'type' => 'tinytext', 'size' => 5, 'visible' => true, // 'groupable' => true, 'searchable' => true, ], 'HTTP_ACCEPT' => ['type' => 'text', 'size' => 128, 'visible' => true, 'searchable' => true], 'RESPONSE_TYPE' => [ 'type' => 'tinytext', 'size' => 32, 'visible' => true, // 'groupable' => true, 'searchable' => true, ], 'HTTP_ACCEPT_ENCODING' => ['type' => 'text', 'size' => 32, 'visible' => true, 'searchable' => true], 'RESPONSE_ENCODING' => [ 'type' => 'tinytext', 'size' => 8, 'visible' => true, // 'groupable' => true, 'searchable' => true, ], 'HTTP_REFERER' => ['type' => 'text', 'size' => 128, 'visible' => true, 'searchable' => true], 'HTTP_FROM' => ['type' => 'text', 'size' => 128, 'visible' => true, 'searchable' => true], 'RESPONSE_INPUT' => ['type' => 'longtext', 'size' => 128, 'visible' => true, 'searchable' => true], 'HTTP_LAST_EVENT_ID' => ['type' => 'tinytext', 'size' => 8, 'visible' => true, 'searchable' => true]]]

$logTableDefault

protected mixed $logTableDefault = '/getPage.php'

$logTableList

protected mixed $logTableList = ['/getCache.php' => 'log_cache', '/getData.php' => 'log_data', '/getFragment.php' => 'log_fragment', '/getPage.php' => 'log_page', '/getResource.php' => 'log_resource', '/getScript.php' => 'log_script', '/getTemplate.php' => 'log_template', 'LookupAssetStrategy' => 'lookup_asset', 'LookupPageStrategy' => 'lookup_page', 'LookupRouteStrategy' => 'lookup_route']

$tempTable

protected mixed $tempTable = 'temp'

Methods

__construct()

public __construct(Database $db) : mixed
Parameters
$db : Database

getConfig()

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

getCurrent()

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

getLogTableByStrategy()

public getLogTableByStrategy(mixed $strategy) : LogTable
Parameters
$strategy : mixed
Return values
LogTable

getLogTableList()

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

getOutdated()

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

import()

public import() : int
Return values
int

insertTemp()

public insertTemp(mixed $time, array<string|int, mixed> $data[, mixed $id = null ]) : mixed
Parameters
$time : mixed
$data : array<string|int, mixed>
$id : mixed = null

parse()

public parse() : int
Return values
int

updateOutdated()

public updateOutdated(array<string|int, mixed> $idList) : void
Parameters
$idList : array<string|int, mixed>

fixIndex()

protected fixIndex() : void

fixRollback()

protected fixRollback() : bool
Return values
bool

fixTemp()

protected fixTemp() : int
Return values
int

prepareData()

protected prepareData(array<string|int, mixed> &$data) : int
Parameters
$data : array<string|int, mixed>
Return values
int
On this page

Search results