<?php
namespace Moto\Application\Support\InputFilter; use Moto; class SendFeedBack extends Moto\InputFilter\AbstractInputFilter { protected $_name = 'support.feedback'; public function init() { $this->add(array( 'name' => 'subject', 'required' => true, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'max' => 200, ), ), ), )); $this->add(array( 'name' => 'body', 'required' => true, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'StringLength', 'options' => array( 'encoding' => 'UTF-8', 'max' => 5000, ), ), ), )); } }