Schedule
MMO\admin\monitoring · 1 symbole · générée le 30 Nov 2026
Schedule
Schedule.php:15When something of the hub runs by itself, as its Settings page set it: on or off, every day or every week, the day, the time on this machine -- and, for what takes them, its own values (keep: how many backup sets stay; where: on the servers, here, or both). One file in the hub's data, which php hub.php scheduled -- the second crontab line of php hub.php cron -- reads every quarter of an hour.
- Espace de noms
MMO\admin\monitoring
Index
| WHERE | where a cleanup deletes (BackupFiles::WHERE): the servers, this machine, both | |
| defaults | ||
| filename | ||
| Check($schedule, $defaults) static | ||
| debugName() | ||
| due($now) | Whether it is to run now: it is enabled, and a moment of it came since it last ran -- or, never run, since it was set (a hub that never set it counts from now on: the first moment after). | |
| get() | ||
| getFilename() | ||
| markRun($at) | Remember that it ran. | |
| next($now) | ||
| Previous($schedule, $now) static | ||
| set($schedule) | Change it: what was not given stays as it was. | |
| write($schedule) | ||
| __construct($filename, $defaults) |
Constantes1
WHERE
where a cleanup deletes (BackupFiles::WHERE): the servers, this machine, both
Propriétés2
defaults
- Type
- array
filename
- Type
- string
Méthodes11
Check($schedule, $defaults)
staticSchedule.php:45| $schedule | array | what a page sent |
| $defaults | array | __construct: for what is missing, and which values it takes |
| retourne | array | bool, every: string, day: int, time: string, keep?: int, where?: string} checked, and its own values |
| lève | for a value that is not one |
debugName()
Schedule.php:25| retourne | string |
due($now)
Schedule.php:95Whether it is to run now: it is enabled, and a moment of it came since it last ran -- or, never run, since it was set (a hub that never set it counts from now on: the first moment after).
get()
Schedule.php:34| retourne | array | bool, every: string, day: int, time: string, keep?: int, where?: string, setAt: ?int, lastRun: ?int} every daily or weekly, day 0 (Sunday) to 6 for a weekly one, time HH:MM on this machine, and its own values; setAt when it was set, lastRun when it last ran |
getFilename()
Schedule.php:27| retourne | string |
markRun($at)
Schedule.php:80Remember that it ran.
next($now)
Schedule.php:108Previous($schedule, $now)
staticSchedule.php:118set($schedule)
Schedule.php:73Change it: what was not given stays as it was.