Documentation

Cleanup
in package
implements api

AbstractYes

Used for data cleanliness and maintenance tasks.

Table of Contents

Interfaces

api
API Interface

Constants

CRON_HOOK  = \tp\TouchPointWP\TouchPointWP::HOOK_PREFIX . "cleanup_cron_hook"

Methods

api()  : bool
Handle API requests - mostly, just a way to forcibly trigger the cleanup process
cronCleanup()  : void
Called by the cron task. (and also by ::api() )

Constants

CRON_HOOK

public mixed CRON_HOOK = \tp\TouchPointWP\TouchPointWP::HOOK_PREFIX . "cleanup_cron_hook"

Methods

api()

Handle API requests - mostly, just a way to forcibly trigger the cleanup process

public static api(array<string|int, mixed> $uri) : bool
Parameters
$uri : array<string|int, mixed>

The request URI already parsed by parse_url()

Return values
bool

False if endpoint is not found. Should print the result.

cronCleanup()

Called by the cron task. (and also by ::api() )

public static cronCleanup([mixed $verbose = false ]) : void
Parameters
$verbose : mixed = false
Tags
see
api()

        
On this page

Search results