/** * (non-PHPdoc) * @see ComActorsControllerAbstract::redirect() */ public function redirect(KCommandContext $context) { if ($context->action != 'add') { return parent::redirect($context); } }
/** * 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(); }