DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
YearsPlanViewHelper¶
ViewHelper to return an array of years of holiday entries.
General properties¶
Name: | Type: | Description: | Default value: |
---|---|---|---|
excludeExpired | boolean | Optional parameter to exclude requests that have been rejected | false |
Example¶
Basic¶
Code:
<chriwo:form.yearsPlan/>
Output:
Array with the years as index and value
[
2016 => 2016
2017 => 2017
]
With exclude parameter¶
Code:
<chriwo:form.yearsPlan excludeExpired="false"/>
Output:
Array with the years as index and value. The year 2016 is exclude, because all vacation requests were rejected.
[
2017 => 2017
]