Skip to content

classes_essentials_logging_requestlogentry.class

Daniel Spors edited this page Nov 14, 2024 · 4 revisions

Classes in file essentials/logging/requestlogentry.class.php

class RequestLogEntry

Represents an entry in the wdf_requests table.

Extends: Model

Cleanup

Cleans up entries older than a given age.

Definition: public static function Cleanup($maxage, $limit)

Returns: void

Parameters:

  • string $maxage Age string like '30 day' or '1 year'

  • int $limit Maximum number of entries to delete

Drop

INTERNAL Drops a previously started request from the DB (discaroding it)

Finish

INTERNAL Finishes a previously started request

GetTableName

IMPLEMENTS Model::GetTableName()

onBeforeOptimize

May be overridden by subclasses to perform additional actions before the table is optimized.

Definition: protected static function onBeforeOptimize(DataSource $ds, $tablename)

Returns: bool

Parameters:

  • \ScavixWDF\Model\DataSource $ds The datasource instance used

  • mixed $tablename The name of the table to be processed

Optimize

Optimizes the requests table. Optimization will be done by renaming the table, optimizing that new table and then renaming it back. Of there's a new table created in the meantime, if will be renamed before and it's data will be integrated.

Definition: public static function Optimize()

Returns: void

Start

INTERNAL Starts a new request

Clone this wiki locally