werkraummedia / calendar
创建日历的扩展API
v2.0.0
2024-09-17 13:00 UTC
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- typo3/cms-backend: ^12.4
- typo3/cms-core: ^12.4
- typo3/cms-extbase: ^12.4
- typo3/cms-fluid-styled-content: ^12.4
- typo3/cms-frontend: ^12.4
Requires (Dev)
- codappix/typo3-php-datasets: ^1.5
- friendsofphp/php-cs-fixer: ^3.11
- phpstan/phpstan: ^1.12
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^10.5 || ^11.3
- saschaegerer/phpstan-typo3: ^1.10
- typo3/testing-framework: ^8.2
README
提供
- 为年、月、周和日提供数据(类)。
- 包含查看年、月、周和日动作的控制器。
每天都可以通过工厂创建外部数据。这样,扩展或TYPO3实例可以为每一天添加更多数据。
修改变量
控制器还有一个事件来修改每个动作分配的变量。
查看 Tests/Fixtures/calendar_example/
作为提供必要自定义设置的示例。
配置
允许配置默认参数值,如果当前请求中没有提供。每个参数都在TypoScript设置命名空间参数下进行配置,例如。
tx_calendar_example { settings { arguments { year { strtotime = midnight first day of -1 year strftime = %Y } } } }
支持的参数有:年、月、周和日。