示例#1
0
 protected final function redirectToRefId()
 {
     return parent::redirectToRefId();
 }
示例#2
0
 protected function afterServiceAuth()
 {
     global $ilCtrl, $lng;
     try {
         if ($this->plugin_service->afterAuthService()) {
             $this->object->setRootId("root", true);
             $this->object->setAuthComplete(true);
             $this->object->update();
             ilUtil::sendSuccess($lng->txt("cld_object_added"), true);
             $ilCtrl->redirectByClass("ilCloudPluginSettingsGUI", "editSettings");
         } else {
             include_once "./Services/Repository/classes/class.ilRepUtil.php";
             ilRepUtil::deleteObjects($this->object->getRefId(), $this->object->getRefId());
             ilUtil::sendFailure($lng->txt("cld_auth_failed_no_object_created"), true);
             ilObjectGUI::redirectToRefId($this->parent_id);
         }
     } catch (Exception $e) {
         ilUtil::sendFailure($e->getMessage(), true);
         ilObjectGUI::redirectToRefId($this->parent_id);
     }
 }