<?php
namespace Moto\Application\MediaLibrary\InputFilter; use Moto\Application\MediaLibrary; use Moto\InputFilter\AbstractInputFilter; class SaveFolders extends AbstractInputFilter { protected $_name = 'mediaLibraryFolder.save'; public function init() { $this->add(array( 'name' => 'folders', 'required' => false, 'filters' => array( array('name' => 'Moto\Application\MediaLibrary\Filter\FoldersTree') ), 'validators' => array( array( 'name' => 'Moto\Validator\Unique', 'break_chain_on_failure' => true, ), array( 'name' => 'Moto\Application\MediaLibrary\Validator\FoldersTree', ), ) )); } }