melisplatform / melis-calendar
v5.2.0
2024-06-06 09:54 UTC
Requires
- php: ^8.1|^8.3
- melisplatform/melis-core: ^5.2
- dev-master
- v5.2.0
- v5.1.0
- v5.0.0
- v4.1.0
- v4.0.0
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.2
- v3.0.1
- v3.0.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.1
- v2.1
- dev-update/jquery3.7.1
- dev-develop
- dev-update/php83
- dev-update/php-8-upgrade
- dev-fix/duplicate-event-display
- dev-php7.4
- dev-migrate/laminas
- dev-zend-old-version
- dev-update/php7.4
This package is auto-updated.
Last update: 2024-09-20 08:50:03 UTC
README
MelisCalendar旨在提供一个日历工具和仪表板项,以帮助在平台上安排事件。
入门指南
以下说明将帮助您将项目复制到您的机器上并运行。
此Melis Platform模块旨在与MelisCore一起使用。
先决条件
您需要安装 melisplatform/melis-core 以运行此模块。
使用composer时将自动完成此操作。
安装
运行composer命令
composer require melisplatform/melis-calendar
数据库
数据库模型可在MySQL Workbench文件中访问
/melis-calendar/install/sql/model
数据库将通过composer及其钩子安装。
如果出现问题,SQL文件位于此处
/melis-calendar/install/sql
提供的工具和元素
- 仪表板日历
- 日历工具
运行代码
MelisCalendarService
除了模块中包含的工具外,您还可以使用日历服务从其他模块添加事件
/melis-calendar/src/Service/MelisCalendarService.php
$calendarService = $this->getServiceManager()->get('MelisCalendarService');
MelisCms表单
表单工厂
所有Melis CMS新闻表单都是使用表单工厂构建的。
所有表单配置均可在文件中找到:/melis-cms-news/config/app.forms.php
任何模块都可以通过在数组中构建键并在Module.php配置创建部分中合并来覆盖或添加此表单中的项。
return array(
'plugins' => array(
// meliscalendar array
'meliscalendar' => array(
// Form key
'forms' => array(
// MelisCalendar Event Form form
'melicalendar_event_form' => array(
'attributes' => array(
'name' => 'calendarform',
'id' => 'idformcalendar',
'method' => 'POST',
'action' => '/melis/MelisCalendar/ToolCalendar/addEvent',
),
'hydrator' => 'Laminas\Hydrator\ArraySerializable',
'elements' => array(
array(
'spec' => array(
...
),
),
),
'input_filter' => array(
'cal_event_title' => array(
...
),
),
),
),
),
),
),
表单元素
MelisCmsCalendar提供用于表单的表单元素
- MelisCalendarDraggableInput:日历的拖放输入
通过自定义代码监听服务并更新行为
$callBackHandler = $sharedEvents->attach(
'MelisCalendar',
array(
'meliscalendar_save_event_end',
),
function($e){
$sm = $e->getTarget()->getServiceManager();
// Get parameters
$params = $e->getParams();
// Code here
},
10);
作者
- Melis Technology - www.melistechnology.com
有关参与此项目的贡献者列表,请参阅。
许可协议
此项目受OSL-3.0许可协议的许可 - 请参阅LICENSE.md文件以获取详细信息