<?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')
),
),
),
),
),
),
),
),
);
|