PHP Classes

File: config/app.microservice.php

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   config/app.microservice.php   Download  
File: config/app.microservice.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Melis CMS
Content management system that provides its tools
Author: By
Last change:
Date: 1 year ago
Size: 2,469 bytes
 

Contents

Class file image Download
<?php
return array(
   
'plugins' => array(
       
'microservice' => array(
           
'MelisCms' => array(
               
               
'MelisCmsSiteService' => array(
                   
/**
                     * @param $siteId
                     *
                     * @method getSitePages()
                     */
                   
'getSitePages' => array(
                       
'attributes' => array(
                           
'name' => 'microservice_form',
                           
'id' => 'microservice_form',
                           
'method'=> 'POST',
                           
'action'=> $_SERVER['REQUEST_URI'],
                        ),
                       
'hydrator' => 'Laminas\Hydrator\ArraySerializableHydrator',
                       
'elements' => array(
                            array(
                               
'spec' => array(
                                   
'name' => 'siteId',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'siteId',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'siteId',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => '1',
                                       
'data-type' => 'int'
                                   
),
                                ),
                            ),
                            array(
                               
'spec' => array(
                                   
'name' => 'type',
                                   
'type' => 'Select',
                                   
'options' => array(
                                       
'label' => 'type',
                                       
'options' => array(
                                           
'saved',
                                           
'published'
                                       
),
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'type',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => 'saved',
                                       
'data-type' => 'string'
                                   
),
                                ),
                            ),
                        ),
                       
'input_filter' => array(
                           
'siteId' => array(
                               
'name' => 'siteId',
                               
'required' => true,
                               
'validators' => array(
                                    array(
                                       
'name' => 'IsInt',
                                       
'option' => array(
                                           
'message' => array(
                                                \
Laminas\I18n\Validator\IsInt::INVALID => 'siteId must be an integer'
                                           
),
                                        ),
                                    ),
                                ),
                               
'filters' => array(
                                    array(
'name' => 'StripTags'),
                                    array(
'name' => 'StringTrim')
                                ),
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
);