/** * Removes an interceptor to apply to values coming from object accessors. * * @param Tx_Fluid_Core_Parser_InterceptorInterface $interceptor * @return void * @author Karsten Dambekalns <*****@*****.**> */ public function removeInterceptor($interceptor) { foreach ($interceptor->getInterceptionPoints() as $interceptionPoint) { if ($this->interceptors[$interceptionPoint]->contains($interceptor)) { $this->interceptors[$interceptionPoint]->detach($interceptor); } } }
/** * Adds an interceptor to apply to values coming from object accessors. * * @param Tx_Fluid_Core_Parser_InterceptorInterface $interceptor * @return void * @author Karsten Dambekalns <*****@*****.**> */ public function addInterceptor(Tx_Fluid_Core_Parser_InterceptorInterface $interceptor) { foreach ($interceptor->getInterceptionPoints() as $interceptionPoint) { if (!isset($this->interceptors[$interceptionPoint])) { $this->interceptors[$interceptionPoint] = t3lib_div::makeInstance('Tx_Extbase_Persistence_ObjectStorage'); } if (!$this->interceptors[$interceptionPoint]->contains($interceptor)) { $this->interceptors[$interceptionPoint]->attach($interceptor); } } }