/** * @param \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper $viewHelper * @return void */ protected function injectDependenciesIntoViewHelper(\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper $viewHelper) { $viewHelper->_set('configurationManager', $this->mockConfigurationManager); parent::injectDependenciesIntoViewHelper($viewHelper); $this->mvcPropertyMapperConfigurationService->_set('hashService', new \TYPO3\CMS\Extbase\Security\Cryptography\HashService()); $viewHelper->_set('mvcPropertyMapperConfigurationService', $this->mvcPropertyMapperConfigurationService); }
/** * @test */ public function processDisablesEscapingInterceptorIfViewHelperDisablesIt() { $interceptorPosition = \TYPO3\CMS\Fluid\Core\Parser\InterceptorInterface::INTERCEPT_OPENING_VIEWHELPER; $this->mockViewHelper->expects($this->once())->method('isEscapingInterceptorEnabled')->will($this->returnValue(FALSE)); $this->mockNode->expects($this->once())->method('getUninitializedViewHelper')->will($this->returnValue($this->mockViewHelper)); $this->assertTrue($this->escapeInterceptor->_get('interceptorEnabled')); $this->escapeInterceptor->process($this->mockNode, $interceptorPosition, $this->mockParsingState); $this->assertFalse($this->escapeInterceptor->_get('interceptorEnabled')); }
/** * @param \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper $viewHelper * @return void */ protected function injectDependenciesIntoViewHelper(\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper $viewHelper) { $viewHelper->_set('configurationManager', $this->mockConfigurationManager); parent::injectDependenciesIntoViewHelper($viewHelper); $hashService = $this->getMock(\TYPO3\CMS\Extbase\Security\Cryptography\HashService::class, array('appendHmac')); $hashService->expects($this->any())->method('appendHmac')->will($this->returnValue('')); $this->mvcPropertyMapperConfigurationService->_set('hashService', $hashService); $viewHelper->_set('mvcPropertyMapperConfigurationService', $this->mvcPropertyMapperConfigurationService); $viewHelper->_set('hashService', $hashService); }
/** * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('partial', 'string', 'Partial to render, with or without section'); $this->registerArgument('section', 'string', 'Section', false, NULL); $this->registerArgument('arguments', 'array', 'Array of variables to be transferred. Use {_all} for all variables', FALSE, array()); }
/** * Register arguments. * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('haystack', 'array', 'Array to search', TRUE); $this->registerArgument('needle', 'string', 'Needle to search', TRUE); $this->registerArgument('strict', 'boolean', 'Strict mode?', FALSE, FALSE); }
/** * Initialize the arguments. * * @return void * @internal */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('renderable', RootRenderableInterface::class, 'A RootRenderableInterface instance', true); $this->registerArgument('as', 'string', 'The name within the template', false, 'formValue'); $this->registerArgument('formRuntime', FormRuntime::class, 'A FormRuntime instance', false, null); }
/** * Register arguments. * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('prefix', 'string', 'prefix', TRUE); $this->registerArgument('prefixSprint', 'string', 'prefix sprintf string', TRUE); $this->registerArgument('array', 'array', 'values', TRUE); }
/** * Initializes the arguments */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('permission', 'int', 'Current permission', true); $this->registerArgument('scope', 'string', '"user" / "group" / "everybody"', true); $this->registerArgument('pageId', 'int', '', true); }
/** * Initializes the arguments */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('controller', 'string', 'The "controller" of scheduler. Possible values are "scheduler", "check", "info"', true); $this->registerArgument('action', 'string', 'The action to be called within each controller', true); $this->registerArgument('arguments', 'array', '', false, []); }
/** * Fix error with hidden pages not showing correctly with shortcuts. * * @param array $page * @param array $rootLine * @return array */ protected function getMenuItemEntry($page, $rootLine) { $page = parent::getMenuItemEntry($page, $rootLine); $page['hasSubPages'] = count($this->getSubmenu($page['uid'])) > 0 ? 1 : 0; $page['class'] = implode(' ', $this->getItemClass($page)); return $page; }
/** * Initialize arguments * * @return void * @api */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('path', 'string', 'The path and filename of the resource (relative to Public resource directory of the extension).', true); $this->registerArgument('extensionName', 'string', 'Target extension name. If not set, the current extension name will be used'); $this->registerArgument('absolute', 'bool', 'If set, an absolute URI is rendered', false, false); }
/** * Registers own arguments. */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('data', 'array', 'The array to output as CSV line', false, null); $this->registerArgument('fieldDelimiter', 'string', 'The string to use as a column separator', false, ','); $this->registerArgument('fieldEnclosure', 'string', 'The string to enclose the field content in', false, '"'); }
/** * Initialize arguments. * * @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('decimals', 'int', 'The number of digits after the decimal point', false, '2'); $this->registerArgument('decimalSeparator', 'string', 'The decimal point character', false, '.'); $this->registerArgument('thousandsSeparator', 'string', 'The character for grouping the thousand digits', false, ','); }
/** * Register arguments. * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('record', '\\File_MARC_Record|boolean', 'The decoded MARC record', FALSE, NULL); $this->registerArgument('path', 'string', 'The MARC path', FALSE, NULL); $this->registerArgument('index', 'integer', 'If return data might be an array, define which index should be returned', FALSE, NULL); }
/** * */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('renderLink', 'bool', 'If true the image is wrapped with a link if one is configured in the file reference', false, true); $this->registerArgument('maxHeight', 'int', 'maximum height', false, PHP_INT_MAX); $this->registerArgument('maxWidth', 'int', 'maximum width', false, PHP_INT_MAX); }
/** * Register arguments. * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('data', 'array', 'The data to test', FALSE, NULL); $this->registerArgument('key', 'string', 'The data to test', FALSE, NULL); $this->registerArgument('activeFacets', 'array', 'The data to test', FALSE, NULL); }
/** * Register arguments. * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('data', 'array', 'The data checked against the blacklist', TRUE, NULL); $this->registerArgument('blacklist', 'array', 'The blacklist to be parsed', TRUE, NULL); $this->registerArgument('blacklistOnKeys', 'boolean', 'Blacklist on array values (default: false) or array keys (true)', FALSE, FALSE); }
/** * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('section', 'integer', 'Section Number', false, 0); $this->registerArgument('row', 'integer', 'Row Number', false, 0); $this->registerArgument('column', 'integer', 'Column Number', false, 0); }
/** * Registers own arguments. */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('format', 'string', 'The linked data format to create', false, 'turtle'); $this->registerArgument('prefixes', 'array', 'The namespace names to use', false, []); $this->registerArgument('name', 'string', 'The name of the template variable to store the data in', false, 'linkedDataContainer'); }
/** * Register arguments. * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('string', 'string', 'The string to split into components', TRUE, NULL); $this->registerArgument('lengths', 'string', 'The lengths seperated, by an "," to seperate the string', TRUE); $this->registerArgument('placeholder', 'string', 'The string that is used to mark a offset as not used', FALSE, '|'); }
public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('parameter', 'string', 'Target used for external links', TRUE); $this->registerArgument('parameterStdWrap', 'array', 'Target used for external links'); $this->registerArgument('useCacheHash', 'array', 'Target used for external links', FALSE, TRUE); $this->registerArgument('extTarget', 'string', 'Target used for external links'); $this->registerArgument('extTargetStdWrap', 'array', 'stdWrap'); $this->registerArgument('fileTarget', 'string', 'Target used for file links'); $this->registerArgument('fileTargetStdWrap', 'array', 'stdWrap'); $this->registerArgument('target', 'string', 'Target used for internal links'); $this->registerArgument('targetStdWrap', 'array', 'stdWrap'); $this->registerArgument('additionalParams', 'array', 'This is parameters that are added to the end of the URL.'); $this->registerArgument('additionalParamsStdWrap', 'array', 'stdWrap, eg.: {data: "TSFE : id"}'); $this->registerArgument('forceAbsoluteUrl', 'boolean', 'Forces links to internal pages to be absolute, thus having a proper URL scheme and domain prepended.'); $this->registerArgument('forceAbsoluteUrlArray', 'array', 'forceAbsoluteUrl settings'); $this->registerArgument('addQueryString', 'boolean', 'Add the QUERY_STRING to the start of the link.'); $this->registerArgument('addQueryStringArray', 'array', 'addQueryString settings'); $this->registerArgument('jumpurl', 'boolean', 'Decides if the link should call the script with the jumpurl parameter in order to register any clicks in statistics.'); $this->registerArgument('jumpurlArray', 'array', 'jumpurl settings'); $this->registerArgument('wrap', 'string', 'Wraps the links.'); $this->registerArgument('wrapStdWrap', 'array', 'stdWrap'); $this->registerArgument('ATagBeforeWrap', 'string', 'If set, the link is first wrapped with ".wrap" and then the A-tag.'); $this->registerArgument('ATagBeforeWrapStdWrap', 'array', 'stdWrap'); $this->registerArgument('linkAccessRestrictedPages', 'boolean', 'If set, typolinks pointing to access restricted pages will still link to the page even though the page cannot be accessed.'); $this->registerArgument('userFunc', 'string', 'This passes the link-data compiled by the typolink function to a user- defined function for final manipulation.'); }
/** * Register arguments. * @return void */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('url', 'string', 'The URL to query', FALSE, NULL); $this->registerArgument('data', 'object', 'The object representaion of the data send to the server', FALSE, NULL); $this->registerArgument('type', 'string', 'Use get or post to query data', FALSE, NULL); }
/** * Initialize arguments. * * @return void * @internal */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('element', RootRenderableInterface::class, 'Form Element to translate', true); $this->registerArgument('property', 'string', 'Property to translate', false); $this->registerArgument('renderingOptionProperty', 'string', 'Property to translate', false); $this->registerArgument('formRuntime', FormRuntime::class, 'The form runtime', false); }
/** * Initialize the arguments. * * @return void * @api */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('extensionName', 'string', 'By default labels will be loaded from the request\'s current extension. Can be overwritten by this attribute.', FALSE); $this->registerArgument('limitUnits', 'integer', 'Limit the amount of displayed units', FALSE, 99); $this->registerArgument('precision', 'string', 'By default the timespan will be diplayed accurately down to the second. Provide "year", "month", "day", "hour" or "minute" to lower the precision.', FALSE, 'second'); $this->registerArgument('reference', \DateTime::class, 'The reference time, can also be passed as child content', FALSE); }
/** * Register arguments. */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('facetID', 'string', 'ID of the facet to determine the selection status of', true); $this->registerArgument('facetTerm', 'string', 'Term of the facet item to determine the selection status of; if NULL any facet with the given facetID matches', false, null); $this->registerArgument('activeFacets', 'array', 'Array of active facets', false, []); $this->registerArgument('type', 'string', 'Query type [string, range]', false, 'string'); }
/** * Registers own arguments. */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('string', 'string', 'The string to work on; if not given, the content of the tag is used', false, null); $this->registerArgument('match', 'string', 'The regular expression used for matching', true); $this->registerArgument('replace', 'string', 'The regular expression replacement string', false, null); $this->registerArgument('useMBEreg', 'boolean', 'Whether to use mb_ereg_replace() instead of preg_replace()', false, false); }
/** * Initialize arguments. * * @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('message', 'string', 'The message of the info box, if NULL tag content is used'); $this->registerArgument('title', 'string', 'The title of the info box'); $this->registerArgument('state', 'int', 'The state of the box, InfoboxViewHelper::STATE_*', false, self::STATE_NOTICE); $this->registerArgument('iconName', 'string', 'The icon name from font awesome, NULL sets default icon'); $this->registerArgument('disableIcon', 'bool', 'If set to TRUE, the icon is not rendered.', false, false); }
/** * Registers own arguments. */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('currentPage', 'int', 'number of the current page', false, 1); $this->registerArgument('resultCount', 'int', 'total number of results', true); $this->registerArgument('perPage', 'int', 'number of results per page', false, 10); $this->registerArgument('adjacentPages', 'int', 'number of neighbours of the current page to show', false, 3); $this->registerArgument('minimumGapSize', 'int', 'gaps of fewer items than this are filles', false, 2); }
/** * Initialize arguments */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('maximumNumberOfResultPages', 'int', '', true); $this->registerArgument('numberOfResults', 'int', '', true); $this->registerArgument('resultsPerPage', 'int', '', true); $this->registerArgument('currentPage', 'int', '', false, 0); $this->registerArgument('freeIndexUid', 'int', ''); }
/** * Initialize arguments * * @return void * @api */ public function initializeArguments() { parent::initializeArguments(); $this->registerArgument('addQueryStringMethod', 'string', 'Method to be used for query string'); $this->registerArgument('action', 'string', 'Target action'); $this->registerArgument('arguments', 'array', 'Arguments', false, []); $this->registerArgument('section', 'string', 'The anchor to be added to the URI', false, ''); $this->registerArgument('format', 'string', 'The requested format, e.g. ".html', false, ''); $this->registerArgument('ajax', 'bool', 'TRUE if the URI should be to an AJAX widget, FALSE otherwise.', false, false); }