/**
  * Add group specific command buttons
  * @return 
  */
 protected function addCommandButtons()
 {
     global $ilUser;
     parent::addCommandButtons();
     if (!$this->isRegistrationPossible()) {
         return false;
     }
     switch ($this->container->getSubscriptionType()) {
         case IL_CRS_SUBSCRIPTION_CONFIRMATION:
             if ($this->participants->isSubscriber($ilUser->getId())) {
                 $this->form->clearCommandButtons();
                 $this->form->addCommandButton('updateSubscriptionRequest', $this->lng->txt('crs_update_subscr_request'));
                 $this->form->addCommandButton('cancelSubscriptionRequest', $this->lng->txt('crs_cancel_subscr_request'));
             } else {
                 $this->form->clearCommandButtons();
                 $this->form->addCommandButton('join', $this->lng->txt('crs_join_request'));
                 $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
             }
             break;
     }
     return true;
 }
 /**
  * Add group specific command buttons
  * @return 
  */
 protected function addCommandButtons()
 {
     global $ilUser;
     parent::addCommandButtons();
     switch ($this->container->getRegistrationType()) {
         case GRP_REGISTRATION_REQUEST:
             if ($this->participants->isSubscriber($ilUser->getId())) {
                 $this->form->clearCommandButtons();
                 $this->form->addCommandButton('updateSubscriptionRequest', $this->lng->txt('grp_update_subscr_request'));
                 $this->form->addCommandButton('cancelSubscriptionRequest', $this->lng->txt('grp_cancel_subscr_request'));
             } else {
                 if (!$this->isRegistrationPossible()) {
                     return false;
                 }
                 $this->form->clearCommandButtons();
                 $this->form->addCommandButton('join', $this->lng->txt('grp_join_request'));
                 $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
             }
             break;
     }
     return true;
 }