当前位置: 首页>>代码示例>>PHP>>正文


PHP ilObjectGUI::_gotoRepositoryRoot方法代码示例

本文整理汇总了PHP中ilObjectGUI::_gotoRepositoryRoot方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjectGUI::_gotoRepositoryRoot方法的具体用法?PHP ilObjectGUI::_gotoRepositoryRoot怎么用?PHP ilObjectGUI::_gotoRepositoryRoot使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ilObjectGUI的用法示例。


在下文中一共展示了ilObjectGUI::_gotoRepositoryRoot方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _goto

 /**
  * Redirect script to call a test with the test reference id
  *
  * Redirect script to call a test with the test reference id
  *
  * @param integer $a_target The reference id of the test
  * @access    public
  */
 public static function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng;
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         //include_once "./Services/Utilities/classes/class.ilUtil.php";
         $_GET["baseClass"] = "ilObjTestGUI";
         $_GET["cmd"] = "infoScreen";
         $_GET["ref_id"] = $a_target;
         include_once "ilias.php";
         exit;
         //ilUtil::redirect("ilias.php?baseClass=ilObjTestGUI&cmd=infoScreen&ref_id=$a_target");
     } else {
         if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
             ilUtil::sendInfo(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($a_target))), true);
             ilObjectGUI::_gotoRepositoryRoot();
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:27,代码来源:class.ilObjTestGUI.php

示例2: _goto

 /**
  * redirect script
  *
  * @param	string		$a_target
  */
 function _goto($a_target)
 {
     global $rbacsystem, $ilErr, $lng, $ilAccess;
     if ($ilAccess->checkAccess("visible", "", $a_target)) {
         ilObjectGUI::_gotoRepositoryNode($a_target, "infoScreen");
     } else {
         if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
             ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($a_target))), true);
             ilObjectGUI::_gotoRepositoryRoot();
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:18,代码来源:class.ilObjFileBasedLMGUI.php

示例3: _goto

 public static function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng, $ilNavigationHistory;
     $i = strpos($a_target, "_");
     if ($i > 0) {
         $a_page = substr($a_target, $i + 1);
         $a_target = substr($a_target, 0, $i);
     }
     if ($a_target == "wpage") {
         $a_page_arr = explode("_", $a_page);
         $wpg_id = (int) $a_page_arr[0];
         $ref_id = (int) $a_page_arr[1];
         include_once "./Modules/Wiki/classes/class.ilWikiPage.php";
         $w_id = ilWikiPage::lookupWikiId($wpg_id);
         if ($ref_id > 0) {
             $refs = array($ref_id);
         } else {
             $refs = ilObject::_getAllReferences($w_id);
         }
         foreach ($refs as $r) {
             if ($ilAccess->checkAccess("read", "", $r)) {
                 $a_target = $r;
                 $a_page = ilWikiPage::lookupTitle($wpg_id);
             }
         }
     }
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         $_GET["cmd"] = "viewPage";
         $_GET["ref_id"] = $a_target;
         $_GET["page"] = $a_page;
         $_GET["baseClass"] = "ilwikihandlergui";
         $_GET["cmdClass"] = "ilobjwikigui";
         /*			if ($a_page != "")
         			{
         				$add = "&page=".rawurlencode($_GET["page"]);
         				$ilNavigationHistory->addItem($_GET["ref_id"],
         					"./goto.php?target=wiki_".$_GET["ref_id"].$add, "wiki");
         			}*/
         include "ilias.php";
         exit;
     } else {
         if ($ilAccess->checkAccess("visible", "", $a_target)) {
             ilObjectGUI::_gotoRepositoryNode($tarr[0], "infoScreen");
         } else {
             if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
                 ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($tarr[0]))), true);
                 ilObjectGUI::_gotoRepositoryRoot();
             }
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:52,代码来源:class.ilObjWikiGUI.php

示例4: _goto

 /**
  * redirect script
  *
  * @param	string		$a_target
  */
 function _goto($a_target, $a_ref_id = "")
 {
     global $rbacsystem, $ilErr, $lng, $ilAccess;
     $glo_id = ilGlossaryTerm::_lookGlossaryID($a_target);
     //::_lookupContObjID($a_target);
     // get all references
     if ($a_ref_id > 0) {
         $ref_ids = array($a_ref_id);
     } else {
         $ref_ids = ilObject::_getAllReferences($glo_id);
     }
     // check read permissions
     foreach ($ref_ids as $ref_id) {
         // Permission check
         if ($ilAccess->checkAccess("read", "", $ref_id)) {
             $_GET["baseClass"] = "ilGlossaryPresentationGUI";
             $_GET["term_id"] = $a_target;
             $_GET["ref_id"] = $ref_id;
             $_GET["cmd"] = "listDefinitions";
             include_once "ilias.php";
             exit;
         }
     }
     if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
         ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle($glo_id)), true);
         ilObjectGUI::_gotoRepositoryRoot();
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:34,代码来源:class.ilGlossaryTermGUI.php

示例5: _goto

 /**
  * Goto item group
  */
 function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng, $tree;
     $targets = explode('_', $a_target);
     $ref_id = $targets[0];
     $par_id = $tree->getParentId($ref_id);
     if ($ilAccess->checkAccess("read", "", $par_id)) {
         include_once "./Services/Link/classes/class.ilLink.php";
         ilUtil::redirect(ilLink::_getLink($par_id));
         exit;
     } else {
         if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
             ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($a_target))), true);
             ilObjectGUI::_gotoRepositoryRoot();
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:21,代码来源:class.ilObjItemGroupGUI.php

示例6: _goto

 /**
  * redirect script
  *
  * @param	string		$a_target
  */
 function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng;
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         $_GET["baseClass"] = "ilLMPresentationGUI";
         $_GET["ref_id"] = $a_target;
         include "ilias.php";
         exit;
     } else {
         if ($ilAccess->checkAccess("visible", "", $a_target)) {
             $_GET["baseClass"] = "ilLMPresentationGUI";
             $_GET["ref_id"] = $a_target;
             $_GET["cmd"] = "infoScreen";
             include "ilias.php";
             exit;
         } else {
             if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
                 ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($a_target))), true);
                 ilObjectGUI::_gotoRepositoryRoot();
             }
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:29,代码来源:class.ilObjContentObjectGUI.php

示例7: updateCustom

 /**
  * updateSettings
  */
 public function updateCustom(ilPropertyFormGUI $a_form)
 {
     global $ilAccess;
     if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) {
         if ($this->object->getOnline() != $a_form->getInput("is_online")) {
             $this->object->setOnline($a_form->getInput("is_online"));
         }
         if (!empty($_FILES['bibliographic_file']['name'])) {
             $this->addNews($this->bibl_obj->getId(), 'updated');
         }
     } else {
         ilUtil::sendFailure($this->lng->txt("no_permission"), true);
         ilObjectGUI::_gotoRepositoryRoot();
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:18,代码来源:class.ilObjBibliographicGUI.php

示例8: _goto

 /**
  * Redirect script to call a test with the question pool reference id
  * 
  * Redirect script to call a test with the question pool reference id
  *
  * @param integer $a_target The reference id of the question pool
  * @access	public
  */
 public static function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng;
     if ($ilAccess->checkAccess("write", "", $a_target)) {
         $_GET["baseClass"] = "ilObjQuestionPoolGUI";
         $_GET["cmd"] = "questions";
         $_GET["ref_id"] = $a_target;
         include_once "ilias.php";
         exit;
     } else {
         if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
             ilUtil::sendInfo(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($a_target))), true);
             ilObjectGUI::_gotoRepositoryRoot();
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:25,代码来源:class.ilObjQuestionPoolGUI.php

示例9: _goto

 /**
  * Goto redirection
  */
 public static function _goto($a_target)
 {
     global $ilCtrl, $ilAccess, $lng;
     $t = explode("_", $a_target[0]);
     $ref_id = (int) $t[0];
     $class_name = $a_target[1];
     if ($ilAccess->checkAccess("read", "", $ref_id)) {
         $ilCtrl->initBaseClass("ilObjPluginDispatchGUI");
         $ilCtrl->setTargetScript("ilias.php");
         $ilCtrl->getCallStructure(strtolower("ilObjPluginDispatchGUI"));
         $ilCtrl->setParameterByClass($class_name, "ref_id", $ref_id);
         $ilCtrl->redirectByClass(array("ilobjplugindispatchgui", $class_name), "");
     } else {
         if ($ilAccess->checkAccess("visible", "", $ref_id)) {
             $ilCtrl->initBaseClass("ilObjPluginDispatchGUI");
             $ilCtrl->setTargetScript("ilias.php");
             $ilCtrl->getCallStructure(strtolower("ilObjPluginDispatchGUI"));
             $ilCtrl->setParameterByClass($class_name, "ref_id", $ref_id);
             $ilCtrl->redirectByClass(array("ilobjplugindispatchgui", $class_name), "infoScreen");
         } else {
             if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
                 ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($ref_id))));
                 include_once "./Services/Object/classes/class.ilObjectGUI.php";
                 ilObjectGUI::_gotoRepositoryRoot();
             }
         }
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:31,代码来源:class.ilObjectPluginGUI.php

示例10: updateCustom

 /**
  * updateSettings
  */
 public function updateCustom(ilPropertyFormGUI $a_form)
 {
     global $ilUser, $ilAccess, $tpl, $lng;
     if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) {
         if ($this->object->getOnline() != $a_form->getInput("is_online")) {
             $this->object->setOnline($a_form->getInput("is_online"));
         }
     } else {
         ilUtil::sendFailure($this->lng->txt("no_permission"), true);
         ilObjectGUI::_gotoRepositoryRoot();
     }
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:15,代码来源:class.ilObjBibliographicGUI.php

示例11: _goto

 /**
  * goto target media pool
  */
 function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng;
     $targets = explode('_', $a_target);
     if (count((array) $targets) > 1) {
         $ref_id = $targets[0];
         $subitem_id = $targets[1];
     } else {
         $ref_id = $targets[0];
     }
     if ($ilAccess->checkAccess("read", "", $ref_id)) {
         $_GET["cmd"] = "frameset";
         $_GET["baseClass"] = "ilMediaPoolPresentationGUI";
         $_GET["ref_id"] = $ref_id;
         $_GET['mepitem_id'] = $subitem_id;
         include "ilias.php";
         exit;
     } else {
         if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
             ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($a_target))), true);
             ilObjectGUI::_gotoRepositoryRoot();
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:28,代码来源:class.ilObjMediaPoolGUI.php

示例12: _goto

 /**
  * goto target course
  */
 public static function _goto($a_target, $a_add = "")
 {
     global $ilAccess, $ilErr, $lng, $ilUser;
     include_once './Services/Membership/classes/class.ilMembershipRegistrationCodeUtils.php';
     if (substr($a_add, 0, 5) == 'rcode') {
         if ($ilUser->getId() == ANONYMOUS_USER_ID) {
             // Redirect to login for anonymous
             ilUtil::redirect("login.php?target=" . $_GET["target"] . "&cmd=force_login&lang=" . $ilUser->getCurrentLanguage());
         }
         // Redirects to target location after assigning user to course
         ilMembershipRegistrationCodeUtils::handleCode($a_target, ilObject::_lookupType(ilObject::_lookupObjId($a_target)), substr($a_add, 5));
     }
     if ($a_add == "mem" && $ilAccess->checkAccess("write", "", $a_target)) {
         ilObjectGUI::_gotoRepositoryNode($a_target, "members");
     }
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         ilObjectGUI::_gotoRepositoryNode($a_target);
     } else {
         // to do: force flat view
         if ($ilAccess->checkAccess("visible", "", $a_target)) {
             ilObjectGUI::_gotoRepositoryNode($a_target, "infoScreenGoto");
         } else {
             if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
                 ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle(ilObject::_lookupObjId($a_target))), true);
                 ilObjectGUI::_gotoRepositoryRoot();
             }
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:33,代码来源:class.ilObjCourseGUI.php

示例13: _goto

 /**
  * goto target group
  */
 public static function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng;
     ilObjectGUI::_gotoRepositoryRoot(true);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:8,代码来源:class.ilObjRootFolderGUI.php

示例14: _goto

 /**
  * redirect script
  *
  * @param	string		$a_target
  */
 function _goto($a_target, $a_target_ref_id = "")
 {
     global $rbacsystem, $ilErr, $lng, $ilAccess;
     // determine learning object
     $lm_id = ilLMObject::_lookupContObjID($a_target);
     // get all references
     $ref_ids = ilObject::_getAllReferences($lm_id);
     // always try passed ref id first
     if (in_array($a_target_ref_id, $ref_ids)) {
         $ref_ids = array_merge(array($a_target_ref_id), $ref_ids);
     }
     // check read permissions
     foreach ($ref_ids as $ref_id) {
         // Permission check
         if ($ilAccess->checkAccess("read", "", $ref_id)) {
             // don't redirect anymore, just set parameters
             // (goto.php includes  "ilias.php")
             $_GET["baseClass"] = "ilLMPresentationGUI";
             $_GET["obj_id"] = $a_target;
             $_GET["ref_id"] = $ref_id;
             include_once "ilias.php";
             exit;
         }
     }
     if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
         ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle($lm_id)), true);
         include_once "./Services/Object/classes/class.ilObjectGUI.php";
         ilObjectGUI::_gotoRepositoryRoot();
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:36,代码来源:class.ilStructureObjectGUI.php

示例15: _goto

 /**
  * redirect script
  *
  * @param	string		$a_target
  */
 function _goto($a_target)
 {
     global $rbacsystem, $ilErr, $lng, $ilAccess;
     $first = strpos($a_target, "_");
     $second = strpos($a_target, "_", $first + 1);
     $page_id = substr($a_target, 0, $first);
     if ($first > 0) {
         $page_id = substr($a_target, 0, $first);
         if ($second > 0) {
             $ref_id = substr($a_target, $first + 1, $second - ($first + 1));
             $anchor = substr($a_target, $second + 1);
         } else {
             $ref_id = substr($a_target, $first + 1);
         }
     } else {
         $page_id = $a_target;
     }
     // determine learning object
     $lm_id = ilLMObject::_lookupContObjID($page_id);
     // get all references
     $ref_ids = ilObject::_getAllReferences($lm_id);
     // always try passed ref id first
     if (in_array($ref_id, $ref_ids)) {
         $ref_ids = array_merge(array($ref_id), $ref_ids);
     }
     // check read permissions
     foreach ($ref_ids as $ref_id) {
         // check read permissions
         if ($ilAccess->checkAccess("read", "", $ref_id)) {
             // don't redirect anymore, just set parameters
             // (goto.php includes  "ilias.php")
             $_GET["baseClass"] = "ilLMPresentationGUI";
             $_GET["obj_id"] = $page_id;
             $_GET["ref_id"] = $ref_id;
             $_GET["anchor"] = $anchor;
             include_once "ilias.php";
             exit;
         }
     }
     if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
         if ($lm_id > 0) {
             ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"), ilObject::_lookupTitle($lm_id)), true);
         } else {
             $lng->loadLanguageModule("content");
             ilUtil::sendFailure($lng->txt("page_does_not_exist"), true);
         }
         include_once "./Services/Object/classes/class.ilObjectGUI.php";
         ilObjectGUI::_gotoRepositoryRoot();
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:56,代码来源:class.ilLMPageObjectGUI.php


注:本文中的ilObjectGUI::_gotoRepositoryRoot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。