示例#1
0
 /**
  * (non-PHPdoc)
  * @see ComActorsControllerAbstract::redirect()
  */
 public function redirect(KCommandContext $context)
 {
     if ($context->action != 'add') {
         return parent::redirect($context);
     }
 }
示例#2
0
 /**
  * Deletes a person and all of their assets. It also logsout the person.
  *
  * @param KCommandContext $context Context parameter
  */
 protected function _actionDelete(KCommandContext $context)
 {
     parent::_actionDelete($context);
     $this->commit();
     $userId = $this->getItem()->userId;
     JFactory::getApplication()->logout($userId);
     JFactory::getUser($userId)->delete();
 }