function register($a_usr_id)
 {
     return ilEventParticipants::_register($a_usr_id, $this->getEventId());
 }
 /**
  * Called from info screen
  * @return 
  */
 public function joinObject()
 {
     global $ilUser;
     $this->checkPermission('read');
     include_once './Modules/Session/classes/class.ilEventParticipants.php';
     if (ilEventParticipants::_isRegistered($ilUser->getId(), $this->object->getId())) {
         $_SESSION['sess_hide_info'] = true;
         ilEventParticipants::_unregister($ilUser->getId(), $this->object->getId());
         ilUtil::sendSuccess($this->lng->txt('event_unregistered'), true);
     } else {
         ilEventParticipants::_register($ilUser->getId(), $this->object->getId());
         ilUtil::sendSuccess($this->lng->txt('event_registered'), true);
     }
     $this->ctrl->redirect($this, 'infoScreen');
 }