public function prepareInputFilter(InputFilter $inputFilter) { parent::prepareInputFilter($inputFilter); $this->cleanUpMissingGroups(); foreach ($this->getElements() as $element) { $element->prepareInputFilter($inputFilter); } }
protected function prepareFiltrator(InputFilter $input) { parent::prepareFiltrator($input); $filtrator = $input->getFiltrator(); $filtrator->add($this->getName(), 'callback', array(Callback::OPTION_CALLBACK => array($this, 'filterValue'))); }