CronExpression::getExpression()
Get all or part of the CRON expression
Метод класса: CronExpression{}
Хуков нет.
Возвращает
Строку|null
. Returns the CRON expression, a part of the
CRON expression, or NULL if the part was specified but not found
Использование
$CronExpression = new CronExpression(); $CronExpression->getExpression( $part );
- $part(строка)
- (optional) Specify the part to retrieve or NULL to
php get the full cron schedule string.
По умолчанию: null
Код CronExpression::getExpression() CronExpression::getExpression WC 8.1.1
public function getExpression($part = null) { if (null === $part) { return implode(' ', $this->cronParts); } elseif (array_key_exists($part, $this->cronParts)) { return $this->cronParts[$part]; } return null; }