FluidTYPO3\Vhs\ViewHelpers\Format\DateRangeViewHelper::initializeArguments PHP Метод

initializeArguments() публичный Метод

public initializeArguments ( ) : void
Результат void
    public function initializeArguments()
    {
        $this->registerArgument('start', 'mixed', 'Start date which can be a DateTime object or a string consumable by DateTime constructor', false, 'now');
        $this->registerArgument('end', 'mixed', 'End date which can be a DateTime object or a string consumable by DateTime constructor');
        $this->registerArgument('intervalFormat', 'string', 'Interval format consumable by DateInterval');
        $this->registerArgument('format', 'string', 'Date format to apply to both start and end date', false, 'Y-m-d');
        $this->registerArgument('startFormat', 'string', 'Date format to apply to start date');
        $this->registerArgument('endFormat', 'string', 'Date format to apply to end date');
        $this->registerArgument('glue', 'string', 'Glue string to concatenate dates with', false, '-');
        $this->registerArgument('spaceGlue', 'boolean', 'If TRUE glue string is surrounded with whitespace', false, true);
        $this->registerArgument('return', 'mixed', 'Return type; can be exactly "DateTime" to return a DateTime instance, a string like "w" or "d" to ' . 'return weeks, days between the two dates - or an array of w, d, etc. strings to return the ' . 'corresponding range count values as an array.');
    }