<?php
namespace Moto\Application\Sitemap\InputFilter; use Moto\InputFilter\AbstractInputFilter; use Moto; class SaveSettings extends AbstractInputFilter { protected $_name = 'sitemap.saveSettings'; public function init() { $this->add(array( 'name' => 'external_sitemaps', 'type' => 'Zend\\InputFilter\\ArrayInput', 'required' => false, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'min' => 8, 'max' => 2048, ), 'break_chain_on_failure' => true ), array( 'name' => 'Uri', 'options' => array( 'allowAbsolute' => true, 'allowRelative' => false, ), ) ), )); $this->add(array( 'name' => 'content_preferences', 'required' => false, )); } } 