<?php
namespace Moto\Application\Content\InputFilter; use Moto; class TaxonomyUpdateRequest extends TaxonomyStoreRequest { protected $_name = 'content.taxonomy.update'; public function init() { parent::init(); $this->add(array( 'name' => 'id', 'required' => true, 'filters' => array( array('name' => 'StripTags'), array('name' => 'StringTrim'), ), 'validators' => array( array( 'name' => 'Digits', 'break_chain_on_failure' => true, ), array( 'name' => 'Db\RecordExists', 'options' => array( 'table' => Moto\Config::get('database.prefix') . 'content_taxonomies', 'field' => 'id', 'adapter' => Moto\Config::get('databaseAdapter'), ) ) ), )); $this->remove('type'); } }