2017 © Pedro Peláez
 

melisplatform-module melis-cms-prospects

Melis Platform prospects module

image

melisplatform/melis-cms-prospects

Melis Platform prospects module

  • Tuesday, July 24, 2018
  • by melisplatform
  • Repository
  • 5 Watchers
  • 2 Stars
  • 1,132 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 5 % Grown

The README.md

melis-cms-prospects

MelisCmsProspects provides a full Prospect system for Melis Platform, including templating plugins., (*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 MelisCms., (*2)

Prerequisites

You will need to install melisplatform/melis-cms 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-cms-prospects

Database

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

Tools & Elements provided

  • Prospects Tool
  • Themes Tool
  • Melis Templating Prospect Plugin (contact form & management)
  • Dashboard item for prospects registration overview

Running the code

MelisCmsProspects Services

MelisCmsProspects provides many services to be used in other modules:, (*6)

  • MelisCmsProspects
    Services to retrieve lists of prospects, prospects details and save a new prospect
    File: /melis-cms-prospects/src/Service/MelisCmsProspectsService.php
// Get the service
$melisProspectsService = $this->getServiceManager()->get('MelisProspectsService');
// Get the number of prospects per month
$nb = $melisProspectsService->getProspectsDataByDate('monthly', '2017-10-04 12:00:00');

MelisCmsProspects Forms

Forms factories

All Melis CMS News forms are built using Form Factories.
All form configuration are available in the file: /melis-cms-prospects/config/app.tools.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(

        // MelisCmsProspects array
        'melistoolprospects' => array(

            // Form key
            'forms' => array(

                // MelisCmsProspects update form
                'melistoolprospects_tool_prospects_update' => array(
                    'attributes' => array(
                        'name' => 'prospectmanager',
                        'id' => 'idformprospectdata',
                        'method' => 'POST',
                        'action' => '',
                    ),
                    'hydrator'  => 'Laminas\Hydrator\ArraySerializableHydrator',
                    'elements' => array(
                        array(
                            'spec' => array(
                                ...
                            ),
                        ),
                    ),
                    'input_filter' => array(
                        'pros_id' => array(
                            ...
                        ),
                    ),
                ),
            ),
        ),
    ),
),

Forms elements

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

  • MelisCmsProspectThemeSelect: a dropdown to select a theme
  • MelisCmsProspectThemeItemSelect: a dropdown to select a theme item

Listening to services and update behavior with custom code

Most services trigger events so that the behavior can be modified., (*9)

public function attach(EventManagerInterface $events)
{
    $sharedEvents      = $events->getSharedManager();

    $callBackHandler = $sharedEvents->attach(
        'MelisCmsProspects',
        array(
            'meliscmsprospects_toolprospects_save_end',
        ),
        function($e){

            $sm = $e->getTarget()->getServiceManager();
            $params = $e->getParams();

            // Custom code
        },
    100);

    $this->listeners[] = $callBackHandler;
}

Authors

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

License

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

The Versions

24/07 2018

dev-MelisDashboard

dev-MelisDashboard https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

16/07 2018

dev-master

9999999-dev https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

16/07 2018

dev-develop

dev-develop https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

12/07 2018

dev-MelisCommercePlugins

dev-MelisCommercePlugins https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

09/07 2018

dev-feature/menu-v2

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

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

31/05 2018

dev-feature/left-menu-update

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

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

zf2 module cms melis

03/05 2018
26/02 2018
15/01 2018

dev-hotfix-dbdeploy

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

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

13/10 2017

v2.2.1

2.2.1.0 https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

07/08 2017

v2.2.0

2.2.0.0 https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

19/06 2017

v2.1.1

2.1.1.0 https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis

16/05 2017

v2.1

2.1.0.0 https://github.com/melisplatform/melis-cms-prospects

Melis Platform prospects module

  Sources   Download

OSL-3.0

The Requires

  • php ^5.5 || ^7.0

 

The Development Requires

zf2 module cms melis