示例#1
0
 /**
  * Deletes a person and all of their assets. It also logsout the person.
  * 
  * @param KCommandContext $context Context parameter
  * 
  * @return AnDomainEntityAbstract
  */
 protected function _actionDelete(KCommandContext $context)
 {
     parent::_actionDelete($context);
     $this->commit();
     $userId = $this->getItem()->userId;
     JFactory::getUser($userId)->delete();
     JFactory::getApplication()->logout($userId);
 }