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


PHP ilObjectGUI::_gotoRepositoryNode方法代码示例

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


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

示例1: _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

示例2: _goto

 /**
  * goto target group
  */
 public static function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng;
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         ilObjectGUI::_gotoRepositoryNode($a_target);
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:11,代码来源:class.ilObjFolderGUI.php

示例3: _goto

 /**
  * Overwrites $_GET['ref_id'] with given $ref_id.
  * @param int  $ref_id
  */
 public static function _goto($ref_id)
 {
     include_once 'Services/Object/classes/class.ilObjectGUI.php';
     ilObjectGUI::_gotoRepositoryNode($ref_id, 'view');
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:9,代码来源:class.ilObjChatroomAdminGUI.php

示例4: _goto

 function _goto($a_target)
 {
     global $ilAccess, $ilErr, $lng;
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         $_GET["cmd"] = "listItems";
         $_GET["ref_id"] = $a_target;
         $_GET["baseClass"] = "ilmediacasthandlergui";
         $_GET["cmdClass"] = "ilobjmediacastgui";
         include "ilias.php";
         exit;
     } else {
         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))));
                 ilObjectGUI::_gotoRepositoryRoot();
             }
         }
     }
     $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:22,代码来源:class.ilObjMediaCastGUI.php

示例5: _goto

 public static function _goto($a_target, $a_additional = null)
 {
     global $ilErr, $lng, $ilAccess;
     if ($a_additional && substr($a_additional, -3) == "wsp") {
         $_GET["baseClass"] = "ilsharedresourceGUI";
         $_GET["wsp_id"] = $a_target;
         include "ilias.php";
         exit;
     }
     // added support for direct download goto links
     if ($a_additional && substr($a_additional, -8) == "download") {
         ilObjectGUI::_gotoRepositoryNode($a_target, "sendfile");
     }
     // static method, no workspace support yet
     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"), $ilErr->FATAL);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:24,代码来源:class.ilObjFileGUI.php

示例6: _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

示例7: _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

示例8: _goto

 /**
  * Overwrites $_GET['ref_id'] with given $ref_id.
  * @param string $params
  */
 public static function _goto($params)
 {
     /**
      * @var $rbacsystem ilRbacSystem
      * @var $ilError    ilErrorHandling
      * @var $lng        ilLanguage
      */
     global $rbacsystem, $ilErr, $lng;
     $parts = explode('_', $params);
     $ref_id = $parts[0];
     $sub = $parts[1];
     if ($rbacsystem->checkAccess('read', $ref_id)) {
         if ($sub) {
             $_REQUEST['sub'] = $_GET['sub'] = (int) $sub;
         }
         include_once 'Services/Object/classes/class.ilObjectGUI.php';
         ilObjectGUI::_gotoRepositoryNode($ref_id, 'view');
     } else {
         if ($rbacsystem->checkAccess('read', ROOT_FOLDER_ID)) {
             ilUtil::sendInfo(sprintf($lng->txt('msg_no_perm_read_item'), ilObject::_lookupTitle(ilObject::_lookupObjId($ref_id))), true);
             include_once 'Services/Object/classes/class.ilObjectGUI.php';
             ilObjectGUI::_gotoRepositoryNode(ROOT_FOLDER_ID, '');
         }
     }
     $ilErr->raiseError(sprintf($lng->txt('msg_no_perm_read_item'), ilObject::_lookupTitle(ilObject::_lookupObjId($ref_id))), $ilErr->FATAL);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:30,代码来源:class.ilObjChatroomGUI.php

示例9: _goto

 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 ($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:Walid-Synakene,项目名称:ilias,代码行数:34,代码来源:class.ilObjWikiGUI.php


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