-
Notifications
You must be signed in to change notification settings - Fork 34
classes_essentials_logging_requestlogentry.class
Represents an entry in the wdf_requests table.
Extends: Model
Cleans up entries older than a given age.
Definition: public static function Cleanup($maxage, $limit)
Returns: void
Parameters:
-
string $maxageAge string like '30 day' or '1 year' -
int $limitMaximum number of entries to delete
INTERNAL Drops a previously started request from the DB (discaroding it)
INTERNAL Finishes a previously started request
IMPLEMENTS Model::GetTableName()
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 $dsThe datasource instance used -
mixed $tablenameThe name of the table to be processed
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
INTERNAL Starts a new request