예제 #1
0
 /**
  * Get the command chain context
  * 
  * This functions inserts a 'caller' variable in the context which contains
  * the mixer object.
  *
  * @return  KCommandContext
  */
 public function getCommandContext()
 {
     $context = $this->_command_chain->getContext();
     $context->caller = $this->_mixer;
     
     return $context;
 }
예제 #2
0
파일: chain.php 프로젝트: stonyyi/anahita
 /**
  * Removes an exsiting content filter fro the content filter chain.
  *
  * @param PlgContentfilterInterface $filter Filter to be removed
  *
  * @return PlgContentfilterChain
  */
 public function removeFilter(PlgContentfilterInterface $filter)
 {
     $this->_chain->dequeue($filter);
     return $this;
 }