Esempio n. 1
0
 /**
  * Command handler
  * 
  * @param   string      The command name
  * @param   object      The command context
  * @return  boolean     Can return both true or false.  
  */
 public function execute($name, KCommandContext $context)
 {
     $parts = explode('.', $name);
     if ($parts[0] == 'before') {
         $this->_fetchOwner($context);
     }
     parent::execute($name, $context);
 }
Esempio n. 2
0
 /**
  * (non-PHPdoc).
  *
  * @see KControllerBehaviorAbstract::execute()
  */
 public function execute($name, KCommandContext $context)
 {
     return parent::execute($name, $context);
 }