protected function registerFillInFilter($filterChain, $parameters) { if (isset($parameters['enabled']) && $parameters['enabled'] && !$filterChain->hasFilter('sfFillInFormFilter')) { $fillInFormFilter = new sfFillInFormFilter(); $fillInFormFilter->initialize($this->context, isset($parameters['param']) ? $parameters['param'] : array()); $filterChain->register($fillInFormFilter); } }
/** * Registers the fill in filter in the filter chain. * * @param sfFilterChain A sfFilterChain implementation instance * @param array An array of parameters to pass to the fill in filter. */ protected function registerFillInFilter($filterChain, $parameters) { // automatically register the fill in filter if it is not already loaded in the chain if (isset($parameters['enabled']) && $parameters['enabled'] && !$filterChain->hasFilter('sfFillInFormFilter')) { // register the fill in form filter $fillInFormFilter = new sfFillInFormFilter(); $fillInFormFilter->initialize($this->context, isset($parameters['param']) ? $parameters['param'] : array()); $filterChain->register($fillInFormFilter); } }