CoolCMS API

CronJobCatalog
in package

FinalYes

Catalog of cron jobs built from the {@see CronJob} attribute of the public `action*()` methods of the presenters in `app/UI/Cron/` — the source of truth for which jobs exist and what their default schedule is.

The scheduler itself is not a job, so its presenter is skipped (self::EXCLUDED_PRESENTERS).

Table of Contents

Constants

EXCLUDED_PRESENTERS  : array<string|int, mixed> = [\App\UI\Cron\System\Presenters\SchedulerPresen...

Properties

$definitions  : array<int, CronJobDefinition>|null

Methods

buildPath()  : string
`/cron/<module>/<presenter>/<action>` exactly as the router maps it (CamelCase → dashed); the `default` action is omitted, as in the documented URLs.
findActions()  : array<int, ReflectionMethod>
Public `action*()` methods declared by the presenter itself, in source order.
findAll()  : array<int, CronJobDefinition>
findPresenterClasses()  : array<int, class-string>
dashed()  : string

Constants

EXCLUDED_PRESENTERS

public array<string|int, mixed> EXCLUDED_PRESENTERS = [\App\UI\Cron\System\Presenters\SchedulerPresenter::class]

presenters that are not jobs

Properties

Methods

buildPath()

`/cron/<module>/<presenter>/<action>` exactly as the router maps it (CamelCase → dashed); the `default` action is omitted, as in the documented URLs.

public static buildPath(class-string $class, string $method) : string
Parameters
$class : class-string
$method : string
Return values
string

findActions()

Public `action*()` methods declared by the presenter itself, in source order.

public static findActions(class-string $class) : array<int, ReflectionMethod>
Parameters
$class : class-string
Return values
array<int, ReflectionMethod>

findPresenterClasses()

public static findPresenterClasses() : array<int, class-string>
Return values
array<int, class-string>

dashed()

private static dashed(string $name) : string
Parameters
$name : string
Return values
string
On this page

Search results