| @@ 43-50 (lines=8) @@ | ||
| 40 | /** |
|
| 41 | * @return void |
|
| 42 | */ |
|
| 43 | public function initializeArguments() |
|
| 44 | { |
|
| 45 | parent::initializeArguments(); |
|
| 46 | $this->registerArgument('value', 'string', 'Value to format'); |
|
| 47 | $this->registerArgument('keepQuotes', 'boolean', 'If TRUE quotes will not be replaced (ENT_NOQUOTES)', false, false); |
|
| 48 | $this->registerArgument('encoding', 'string', 'Encoding', false, 'UTF-8'); |
|
| 49 | $this->registerArgument('doubleEncode', 'boolean', 'If FALSE html entities will not be encoded', false, true); |
|
| 50 | } |
|
| 51 | ||
| 52 | public function evaluate(RenderingContextInterface $renderingContext) |
|
| 53 | { |
|
| @@ 66-74 (lines=9) @@ | ||
| 63 | /** |
|
| 64 | * @return void |
|
| 65 | */ |
|
| 66 | public function initializeArguments() |
|
| 67 | { |
|
| 68 | parent::initializeArguments(); |
|
| 69 | $this->registerArgument('each', 'array', 'The array or \SplObjectStorage to iterated over', true); |
|
| 70 | $this->registerArgument('as', 'string', 'The name of the iteration variable', true); |
|
| 71 | $this->registerArgument('key', 'string', 'Variable to assign array key to'); |
|
| 72 | $this->registerArgument('reverse', 'boolean', 'If TRUE, iterates in reverse', false, false); |
|
| 73 | $this->registerArgument('iteration', 'string', 'The name of the variable to store iteration information (index, cycle, isFirst, isLast, isEven, isOdd)'); |
|
| 74 | } |
|
| 75 | ||
| 76 | public function evaluate(RenderingContextInterface $renderingContext) |
|
| 77 | { |
|
| @@ 81-88 (lines=8) @@ | ||
| 78 | /** |
|
| 79 | * @return void |
|
| 80 | */ |
|
| 81 | public function initializeArguments() |
|
| 82 | { |
|
| 83 | parent::initializeArguments(); |
|
| 84 | $this->registerArgument('each', 'array', 'The array or \SplObjectStorage to iterated over', true); |
|
| 85 | $this->registerArgument('as', 'string', 'The name of the iteration variable', true); |
|
| 86 | $this->registerArgument('groupBy', 'string', 'Group by this property', true); |
|
| 87 | $this->registerArgument('groupKey', 'string', 'The name of the variable to store the current group', false, 'groupKey'); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * @param RenderingContextInterface $renderingContext |
|
| @@ 40-48 (lines=9) @@ | ||
| 37 | /** |
|
| 38 | * @return void |
|
| 39 | */ |
|
| 40 | public function initializeArguments() |
|
| 41 | { |
|
| 42 | parent::initializeArguments(); |
|
| 43 | $this->registerArgument('name', 'string', 'Name of the parameter', true); |
|
| 44 | $this->registerArgument('type', 'string', 'Data type of the parameter, e.g. string/int/bool', true); |
|
| 45 | $this->registerArgument('description', 'string', 'Brief description of parameter. For increased detail you can use this ViewHelper in tag mode and add f:description inside the tag'); |
|
| 46 | $this->registerArgument('required', 'bool', 'If TRUE, becomes required parameter that causes errors if not provided', false, false); |
|
| 47 | $this->registerArgument('default', 'mixed', 'Default value of the parameter if not required and not passed'); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||