<?php
 namespace Moto\Application\Pages\InputFilter; use Moto\InputFilter\AbstractInputFilter; use Zend\InputFilter\Exception; class PagePropertiesCustomCode extends AbstractInputFilter{ protected $_name = 'pages.change:properties.custom_code'; public function init() { $this->add(array( 'name' => 'header', 'required' => false, 'allow_empty' => true, 'filters' => array( array('name' => 'StringTrim'), array( 'name' => 'Moto\Filter\StripCode', 'options' => array( 'php' => true, 'script' => false, ) ), ), 'continue_if_empty' => true, 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'min' => 0, 'max' => 4000, ), ), ), )); $this->add(array( 'name' => 'footer', 'required' => false, 'allow_empty' => true, 'filters' => array( array('name' => 'StringTrim'), array( 'name' => 'Moto\Filter\StripCode', 'options' => array( 'php' => true, 'script' => false, ) ), ), 'continue_if_empty' => true, 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'min' => 0, 'max' => 4000, ), ), ), )); } }