Skip to content

tp TouchPointWP Utilities Cleanup

James K. edited this page May 7, 2024 · 1 revision

tp\TouchPointWP\Utilities\Cleanup

Used for data cleanliness and maintenance tasks.

  • Class name: Cleanup
  • Namespace: \tp\TouchPointWP\Utilities
  • This is an abstract class
  • This class implements: tp\TouchPointWP\api

Constants

CRON_HOOK

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

Methods

cronCleanup

mixed tp\TouchPointWP\Utilities\Cleanup::cronCleanup(mixed verbose)

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

  • Visibility: public
  • This method is static.

Arguments

  • verbose mixed

Returns

  • mixed

api

bool tp\TouchPointWP\api::api(array uri)

Handle API requests

Arguments

  • uri array - The request URI already parsed by parse_url()

Returns

  • bool - False if endpoint is not found. Should print the result.
Clone this wiki locally