‪TYPO3CMS  ‪main
TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy:
TYPO3\CMS\Scheduler\CronCommand\NormalizeCommand

Static Public Member Functions

static convertKeywordsToCronCommand ($cronCommand)
 
static normalizeFields ($cronCommand)
 
static normalizeMonthAndWeekdayField ($expression, $isMonthField=true)
 
static normalizeIntegerField ($expression, $lowerBound=0, $upperBound=59)
 
static splitFields ($cronCommand)
 
static convertRangeToListOfValues ($range)
 
static reduceListOfValuesByStepValue ($stepExpression)
 
static normalizeMonthAndWeekday ($expression, $isMonth=true)
 
static normalizeMonth ($month)
 
static normalizeWeekday ($weekday)
 
- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Scheduler\CronCommand\NormalizeCommand
static string normalize ($cronCommand)
 

Additional Inherited Members

Detailed Description

Accessible proxy with protected methods made public.

Definition at line 25 of file NormalizeCommandAccessibleProxy.php.

Member Function Documentation

◆ convertKeywordsToCronCommand()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::convertKeywordsToCronCommand (   $cronCommand)
static

Accept special cron command keywords and convert to standard cron syntax. Allowed keywords: @yearly, @annually, @monthly, @weekly, @daily, @midnight, @hourly

Parameters
string$cronCommand‪Cron command
Returns
‪string Normalized cron command if keyword was found, else unchanged cron command

Reimplemented from TYPO3\CMS\Scheduler\CronCommand\NormalizeCommand.

Definition at line 27 of file NormalizeCommandAccessibleProxy.php.

Referenced by TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\convertKeywordsToCronCommandConvertsValidKeywords(), and TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\convertKeywordsToCronCommandReturnsUnchangedCommandIfKeywordWasNotFound().

◆ convertRangeToListOfValues()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::convertRangeToListOfValues (   $range)
static

◆ normalizeFields()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::normalizeFields (   $cronCommand)
static

Normalize cron command field to list of integers or *

Parameters
string$cronCommand‪cron command
Returns
‪string Normalized cron command

Reimplemented from TYPO3\CMS\Scheduler\CronCommand\NormalizeCommand.

Definition at line 32 of file NormalizeCommandAccessibleProxy.php.

Referenced by TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\normalizeFieldsConvertsField().

◆ normalizeIntegerField()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::normalizeIntegerField (   $expression,
  $lowerBound = 0,
  $upperBound = 59 
)
static

◆ normalizeMonth()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::normalizeMonth (   $month)
static

◆ normalizeMonthAndWeekday()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::normalizeMonthAndWeekday (   $expression,
  $isMonth = true 
)
static

Dispatcher method for normalizeMonth and normalizeWeekday

Parameters
string$expression‪Month or weekday to be normalized
bool$isMonth‪TRUE if a month is handled, FALSE for weekday
Returns
‪string normalized month or weekday

Reimplemented from TYPO3\CMS\Scheduler\CronCommand\NormalizeCommand.

Definition at line 62 of file NormalizeCommandAccessibleProxy.php.

Referenced by TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\normalizeMonthAndWeekdayLeavesValueUnchanged(), TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\normalizeMonthAndWeekdayNormalizesAMonth(), and TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\normalizeMonthAndWeekdayNormalizesAWeekday().

◆ normalizeMonthAndWeekdayField()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::normalizeMonthAndWeekdayField (   $expression,
  $isMonthField = true 
)
static

Normalize month field.

Parameters
string$expression‪Month field expression
bool$isMonthField‪TRUE if month field is handled, FALSE for weekday field
Returns
‪string Normalized expression

Reimplemented from TYPO3\CMS\Scheduler\CronCommand\NormalizeCommand.

Definition at line 37 of file NormalizeCommandAccessibleProxy.php.

Referenced by TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\normalizeMonthAndWeekdayFieldReturnsNormalizedListForValidExpression(), and TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\normalizeMonthAndWeekdayFieldThrowsExceptionForInvalidExpression().

◆ normalizeWeekday()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::normalizeWeekday (   $weekday)
static

◆ reduceListOfValuesByStepValue()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::reduceListOfValuesByStepValue (   $stepExpression)
static

Reduce a given list of values by step value. Following a range with `‘/<number>’' specifies skips of the number's value through the range. 1-5/2 -> 1,3,5 2-10/3 -> 2,5,8

Exceptions

Reimplemented from TYPO3\CMS\Scheduler\CronCommand\NormalizeCommand.

Definition at line 57 of file NormalizeCommandAccessibleProxy.php.

Referenced by TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\reduceListOfValuesByStepValueReturnsCorrectListOfValues(), and TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\NormalizeCommandTest\reduceListOfValuesByStepValueThrowsExceptionForInvalidStepExpressions().

◆ splitFields()

static TYPO3\CMS\Scheduler\Tests\Unit\CronCommand\AccessibleProxies\NormalizeCommandAccessibleProxy::splitFields (   $cronCommand)
static