本文整理汇总了PHP中TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::initializeArguments方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractViewHelper::initializeArguments方法的具体用法?PHP AbstractViewHelper::initializeArguments怎么用?PHP AbstractViewHelper::initializeArguments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
的用法示例。
在下文中一共展示了AbstractViewHelper::initializeArguments方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initializeArguments
/**
* @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);
}
示例2: initializeArguments
/**
* 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);
}
示例3: initializeArguments
/**
* 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);
}
示例4: initializeArguments
/**
* 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');
}
示例5: initializeArguments
/**
* 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);
}
示例6: initializeArguments
/**
* 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, '"');
}
示例7: initializeArguments
/**
* 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, '|');
}
示例8: initializeArguments
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.');
}
示例9: initializeArguments
/**
* 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);
}
示例10: initializeArguments
/**
*
*/
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);
}
示例11: initializeArguments
/**
* @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());
}
示例12: initializeArguments
/**
* 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);
}
示例13: initializeArguments
/**
* 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');
}
示例14: initializeArguments
/**
* 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);
}
示例15: initializeArguments
/**
* Add the new 'classItem' option.
*
* @return void
*/
public function initializeArguments()
{
parent::initializeArguments();
$this->registerArgument('classItem', 'string', 'Optional extra class to add to each link (and wrapper) element. Use ' . ':level in the class name to add the current level number to the class.');
for ($i = 2; $i <= 10; $i++) {
$this->registerArgument('classItem' . $i, 'string', 'Optional extra class to add to each link (and wrapper) element (level ' . $i . '. Use ' . ':level in the class name to add the current level number to the class.');
}
}