<?php
namespace Website\Widgets\ContactForm\InputFilter; use Moto; class Placeholder extends Moto\InputFilter\AbstractInputFilter { public function init() { $this->add(array( 'name' => 'email', 'required' => true, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), array('name' => 'StripNewlines'), array('name' => 'HtmlEntities'), ), )); $this->add(array( 'name' => 'name', 'required' => false, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), array('name' => 'StripNewlines'), ), )); $this->add(array( 'name' => 'phone', 'required' => false, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), array('name' => 'StripNewlines'), ), )); $this->add(array( 'name' => 'address', 'required' => false, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), array('name' => 'StripNewlines'), ), )); $this->add(array( 'name' => 'subject', 'required' => false, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), array('name' => 'StripNewlines'), ), )); $this->add(array( 'name' => 'message', 'required' => false, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), ), )); $this->add(array( 'name' => 'checkbox', 'required' => false, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), ), )); } }