本文整理汇总了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);
}
示例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);
}
示例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');
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}