PHP Classes

File: template/Config/app.microservice.php

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Tool Creator   template/Config/app.microservice.php   Download  
File: template/Config/app.microservice.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Melis Tool Creator
Module for the Melis CMS to create tools
Author: By
Last change:
Date: 1 year ago
Size: 7,637 bytes
 

Contents

Class file image Download
<?php
return [
   
'plugins' => [
       
'microservice' => [
           
'ModuleTpl' => [
               
'ModuleTplService' => [
                   
'getItemById' => [
                       
'attributes' => [
                           
'name' => 'microservice_form',
                           
'id' => 'microservice_form',
                           
'method'=> 'POST',
                           
'action'=> $_SERVER['REQUEST_URI'],
                        ],
                       
'hydrator' => 'Laminas\Hydrator\ArraySerializableHydrator',
                       
'elements' => [
                            array(
                               
'spec' => array(
                                   
'name' => 'Id',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'Id',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'Id',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => '0',
                                       
'data-type' => 'int'
                                   
),
                                ),
                            ),
                        ]
                    ],
                   
'getList' => [
                       
'attributes' => [
                           
'name' => 'microservice_form',
                           
'id' => 'microservice_form',
                           
'method'=> 'POST',
                           
'action'=> $_SERVER['REQUEST_URI'],
                        ],
                       
'hydrator' => 'Laminas\Hydrator\ArraySerializableHydrator',
                       
'elements' => [
                            array(
                               
'spec' => array(
                                   
'name' => 'start',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'start',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'start',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => '0',
                                       
'data-type' => 'int'
                                   
),
                                ),
                            ),
                            array(
                               
'spec' => array(
                                   
'name' => 'limit',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'limit',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'limit',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => '0',
                                       
'data-type' => 'int'
                                   
),
                                ),
                            ),
                            array(
                               
'spec' => array(
                                   
'name' => 'searchKeys[]',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'search keys',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'searchKeys',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => 'separate by comma',
                                       
'data-type' => 'array',
                                    ),
                                ),
                            ),
                            array(
                               
'spec' => array(
                                   
'name' => 'searchValue',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'search value',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'searchValue',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => 'search1',
                                       
'data-type' => 'string',
                                    ),
                                ),
                            ),
                            array(
                               
'spec' => array(
                                   
'name' => 'orderKey',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'order key',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'orderKey',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => 'col2',
                                       
'data-type' => 'string',
                                    ),
                                ),
                            ),
                            array(
                               
'spec' => array(
                                   
'name' => 'order',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'order',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'order',
                                       
'value' => '',
                                       
'placeholder' => 'ASC',
                                       
'data-type' => 'string',
                                    ),
                                ),
                            ),
                            array(
                               
'spec' => array(
                                   
'name' => 'langId',
                                   
'type' => 'Text',
                                   
'options' => array(
                                       
'label' => 'lang id',
                                    ),
                                   
'attributes' => array(
                                       
'id' => 'langId',
                                       
'value' => '',
                                       
'class' => '',
                                       
'placeholder' => '0',
                                       
'data-type' => 'int'
                                   
),
                                ),
                            ),
                        ]
                    ]
                ]
            ]
        ]
    ]
];