cCronField
MMO\core\helpers · 1 symbol · generated 5 Oct 2026
cCronField
cCronField.php:73CRON Expressions ================
- Namespace
MMO\core\helpers
Index
| ALIAS_DAYS | ||
| ALIAS_MONTHS | ||
| DayOfMonth | Day of the month (1-31) | |
| DayOfWeek | Day of the week day of week (0-6 : Sunday - Saturday), or (1-7 : Monday - Sunday), or (Sun-Sat) | |
| Hour | Hours (0-23) | |
| Minute | Minutes (0-59) | |
| Month | Month (1-12) or (JAN-DEC) | |
| name readonly | ||
| value readonly | ||
| cases() static | ||
| check($date, $range) | Check if a date is within the range of the current field | |
| describe($value) | Turn a field expression into a list of human-readable fragments (e.g. | |
| from($value) static | ||
| isValid($value) | Tells if a full field expression is valid: a wildcard (*/?), a comma-separated list, a step (/N), a range (start-end), or a single value (isValueValid) -- any combination thereof. | |
| isValueValid($value) | Test if a SINGLE value (not a list/range/step expression -- see isValid for that) is valid for this field: a plain number within limits, a day/month name alias, or (for DayOfMonth/DayOfWe… | |
| limits() | ||
| range($value) | Parse a field expression into the explicit list of values (or special tokens like 'L'/'15W') it allows. | |
| tryFrom($value) static |
Constants7
ALIAS_DAYS
ALIAS_MONTHS
DayOfMonth
Day of the month (1-31)
DayOfWeek
Day of the week day of week (0-6 : Sunday - Saturday), or (1-7 : Monday - Sunday), or (Sun-Sat)
Hour
Hours (0-23)
Minute
Minutes (0-59)
Month
Month (1-12) or (JAN-DEC)
Properties2
name
readonly- Type
- string
value
readonly- Type
- int
Methods9
cases()
static| returns | array |
check($date, $range)
cCronField.php:216Check if a date is within the range of the current field
| $date | DateTimeInterface | |
| $range | array | string | null | a raw field expression (parsed via range), an already-parsed array, or null (always matches) |
| returns | bool |
describe($value)
cCronField.php:343Turn a field expression into a list of human-readable fragments (e.g. for building a sentence like "at minute 0, every 5 of [10-20], last day").
from($value)
staticisValid($value)
cCronField.php:182Tells if a full field expression is valid: a wildcard (*/?), a comma-separated list, a step (/N), a range (start-end), or a single value (isValueValid) -- any combination thereof.
isValueValid($value)
cCronField.php:153Test if a SINGLE value (not a list/range/step expression -- see isValid for that) is valid for this field: a plain number within limits, a day/month name alias, or (for DayOfMonth/DayOfWeek) one of the special forms documented on this enum (L, L-3, LW, 15W, 7#4, 7L).
limits()
cCronField.php:133| returns | array | int, 1: int} [min, max] for this field, e.g. [0, 59] for Minute |
range($value)
cCronField.php:275Parse a field expression into the explicit list of values (or special tokens like 'L'/'15W') it allows.