Function Module_admin_errorlog->configure_cron_hook

Definitions

adminzone/pages/modules/admin_errorlog.php

  • Configure a system scheduler hook.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$hook ID_TEXT No No required parameter N/A N/A The hook
$enabled BINARY No No required parameter N/A N/A Whether the hook is enabled

Returns

  • The result of execution
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Configure a system scheduler hook.
 *
 * @param  ID_TEXT $hook The hook
 * @param  BINARY $enabled Whether the hook is enabled
 * @return Tempcode The result of execution
 */

protected function configure_cron_hook(string $hook, int $enabled) : object