<?php
namespace Moto\InputFilter\ClickAction; use Moto\InputFilter\AbstractInputFilter; class Box extends AbstractInputFilter { public function init() { $this->add(array( 'name' => 'src', 'required' => true, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'min' => 1, 'max' => 512, ), ), ), )); $this->add(array( 'name' => 'media_id', 'required' => false, 'filters' => array( array('name' => 'Moto\Filter\DefaultFilter'), ), 'validators' => array( array( 'name' => 'Digits', ), ), )); } }