2017 © Pedro Peláez
 

melisplatform-module melis-calendar

image

melisplatform/melis-calendar

  • Tuesday, July 24, 2018
  • by melisplatform
  • Repository
  • 5 Watchers
  • 2 Stars
  • 1,041 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 6 % Grown

The README.md

melis-calendar

MelisCalendar is made to provide a calendar tool and dashboard item to help schedule events on the platform., (*1)

Getting Started

These instructions will get you a copy of the project up and running on your machine.
This Melis Platform module is made to work with the MelisCore., (*2)

Prerequisites

You will need to install melisplatform/melis-core in order to have this module running.
This will automatically be done when using composer., (*3)

Installing

Run the composer command:, (*4)

composer require melisplatform/melis-calendar

Database

Database model is accessible on the MySQL Workbench file:
/melis-calendar/install/sql/model
Database will be installed through composer and its hooks.
In case of problems, SQL files are located here:
/melis-calendar/install/sql, (*5)

Tools & Elements provided

  • Dashboard Calendar
  • Calendar Tool

Running the code

MelisCalendarService

Aside from the tool coming with module, you can use the Calendar service to add events from other modules:
/melis-calendar/src/Service/MelisCalendarService.php, (*6)

$calendarService  = $this->getServiceManager()->get('MelisCalendarService');

MelisCms Forms

Forms factories

All Melis CMS News forms are built using Form Factories.
All form configuration are available in the file: /melis-cms-news/config/app.forms.php
Any module can override or add items in this form by building the keys in an array and marge it in the Module.php config creation part., (*7)

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(
                                ...
                        ),
                    ),
                ),
            ),
        ),
    ),
),

Forms elements

MelisCmsCalendar provides form elements to be used in forms:, (*8)

  • MelisCalendarDraggableInput: drag'n'drop input for the calendar

Listening to services and update behavior with custom code

$callBackHandler = $sharedEvents->attach(
    'MelisCalendar',
    array(
        'meliscalendar_save_event_end',
    ),
    function($e){
        $sm = $e->getTarget()->getServiceManager();

        // Get parameters
        $params = $e->getParams();

        // Code here
    },
10);

Authors

See also the list of contributors who participated in this project., (*9)

License

This project is licensed under the OSL-3.0 License - see the LICENSE.md file for details, (*10)

The Versions

24/07 2018

dev-MelisDashboard

dev-MelisDashboard https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

 

zf2 module cms melis

19/07 2018

dev-master

9999999-dev https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

 

zf2 module cms melis

19/07 2018

dev-develop

dev-develop https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

 

zf2 module cms melis

09/07 2018

dev-feature/menu-v2

dev-feature/menu-v2 https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

 

zf2 module cms melis

31/05 2018

dev-feature/left-menu-update

dev-feature/left-menu-update https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

 

zf2 module cms melis

03/05 2018

v2.4.0

2.4.0.0 https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

 

zf2 module cms melis

26/02 2018

v2.3.0

2.3.0.0 https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

 

zf2 module cms melis

15/01 2018

dev-hotfix-dbdeploy

dev-hotfix-dbdeploy https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

zf2 module cms melis

10/10 2017

v2.2.1

2.2.1.0 https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

zf2 module cms melis

07/08 2017

v2.2.0

2.2.0.0 https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

zf2 module cms melis

16/05 2017

v2.1

2.1.0.0 https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

zf2 module cms melis

16/05 2017

v2.1.1

2.1.1.0 https://github.com/melisplatform/melis-calendar

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

zf2 module cms melis