<?php
namespace Moto\Application\Pages\InputFilter; use Moto\InputFilter\AbstractInputFilter; use Zend\InputFilter\Exception; class PagePropertiesMenu extends AbstractInputFilter { protected $_name = 'pages.change:properties.menu'; public function init() { $this->add(array( 'name' => 'label', 'required' => false, 'filters' => array( array('name' => 'Moto\Filter\NullValue'), array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'min' => 1, 'max' => 200, ), ), ), )); $this->add(array( 'name' => 'title', 'required' => false, 'filters' => array( array('name' => 'Moto\Filter\NullValue'), array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'min' => 1, 'max' => 200, ), ), ), )); $this->add(array( 'name' => 'icon', 'required' => false, 'filters' => array( array('name' => 'Moto\Filter\NullValue'), array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'min' => 1, 'max' => 200, ), ), ), )); } } 