當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilObjectGUI類代碼示例

本文整理匯總了PHP中ilObjectGUI的典型用法代碼示例。如果您正苦於以下問題:PHP ilObjectGUI類的具體用法?PHP ilObjectGUI怎麽用?PHP ilObjectGUI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ilObjectGUI類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Contructor
  *
  * @access public
  */
 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
 {
     $this->type = 'ps';
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $this->lng->loadLanguageModule('ps');
     ilObjPrivacySecurityGUI::$ERROR_MESSAGE = array(ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS => $this->lng->txt("ps_error_message_https_header_missing"), ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_HTTPS_NOT_AVAILABLE => $this->lng->txt('https_not_possible'), ilSecuritySettings::$SECURITY_SETTINGS_ERR_CODE_HTTP_NOT_AVAILABLE => $this->lng->txt('http_not_possible'), ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MIN_LENGTH => $this->lng->txt('ps_error_message_invalid_password_min_length'), ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_LENGTH => $this->lng->txt('ps_error_message_invalid_password_max_length'), ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_PASSWORD_MAX_AGE => $this->lng->txt('ps_error_message_invalid_password_max_age'), ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_INVALID_LOGIN_MAX_ATTEMPTS => $this->lng->txt('ps_error_message_invalid_login_max_attempts'), ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN2 => $this->lng->txt('ps_error_message_password_min2_because_chars_numbers'), ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MIN_LENGTH_MIN3 => $this->lng->txt('ps_error_message_password_min3_because_chars_numbers_sc'), ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_PASSWORD_MAX_LENGTH_LESS_MIN_LENGTH => $this->lng->txt('ps_error_message_password_max_less_min'));
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:12,代碼來源:class.ilObjPrivacySecurityGUI.php

示例2: __construct

 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
 {
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $this->type = 'reps';
     $this->lng->loadLanguageModule('rep');
     $this->lng->loadLanguageModule('cmps');
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:7,代碼來源:class.ilObjRepositorySettingsGUI.php

示例3: __construct

 /**
  * Contructor
  *
  * @access public
  */
 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
 {
     global $lng;
     $this->type = 'pdts';
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $lng->loadLanguageModule("pd");
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:12,代碼來源:class.ilObjPersonalDesktopSettingsGUI.php

示例4: __construct

 /**
  * Contructor
  *
  * @access public
  */
 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
 {
     $this->type = 'mcts';
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $this->lng->loadLanguageModule('mcst');
     $this->initMediaCastSettings();
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:12,代碼來源:class.ilObjMediaCastSettingsGUI.php

示例5: __construct

 /**
  * @param      $a_data
  * @param      $a_id
  * @param bool $a_call_by_reference
  * @param bool $a_prepare_output
  */
 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
 {
     $this->type = 'bibs';
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $this->lng->loadLanguageModule('bibl');
     //Check Permissions globally for all SubGUIs. We only check write permissions
     $this->checkPermission('write');
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:14,代碼來源:class.ilObjBibliographicAdminGUI.php

示例6: __construct

 /**
  * Constructor
  *
  * @access public
  */
 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
 {
     global $lng;
     $this->type = 'cals';
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $this->lng = $lng;
     $this->lng->loadLanguageModule('dateplaner');
     $this->lng->loadLanguageModule('jscalendar');
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:14,代碼來源:class.ilObjCalendarSettingsGUI.php

示例7: ilObjMediaObjectGUI

 function ilObjMediaObjectGUI($a_data, $a_id = 0, $a_call_by_reference = false, $a_prepare_output = false)
 {
     global $lng, $ilCtrl;
     $this->ctrl =& $ilCtrl;
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $this->lng =& $lng;
     $this->back_title = "";
     $this->type = "mob";
 }
開發者ID:khanhnnvn,項目名稱:ilias_E-learning,代碼行數:9,代碼來源:class.ilObjMediaObjectGUI.php

示例8: __construct

 /**
  * Contructor
  *
  * @access public
  */
 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
 {
     global $ilCtrl;
     $this->type = 'skmg';
     parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
     $this->lng->loadLanguageModule('skmg');
     include_once "./Services/Skill/classes/class.ilSkillTree.php";
     $this->skill_tree = new ilSkillTree();
     $ilCtrl->saveParameter($this, "obj_id");
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:15,代碼來源:class.ilObjSkillManagementGUI.php

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

示例10: _goto

 /**
  * redirect script
  *
  * @param	string		$a_target
  */
 public static function _goto($a_target, $a_access_code = "")
 {
     global $ilAccess, $ilErr, $lng;
     // see ilObjSurveyAccess::_checkGoto()
     include_once "./Services/Utilities/classes/class.ilUtil.php";
     if (strlen($a_access_code)) {
         $_SESSION["anonymous_id"][ilObject::_lookupObjId($a_target)] = $a_access_code;
         $_GET["baseClass"] = "ilObjSurveyGUI";
         $_GET["cmd"] = "infoScreen";
         $_GET["ref_id"] = $a_target;
         include "ilias.php";
         exit;
     }
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         $_GET["baseClass"] = "ilObjSurveyGUI";
         $_GET["cmd"] = "infoScreen";
         $_GET["ref_id"] = $a_target;
         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:arlendotcn,項目名稱:ilias,代碼行數:32,代碼來源:class.ilObjSurveyGUI.php

示例11: performDelete

 /**
  * Perform delete
  */
 public function performDelete()
 {
     $this->ctrl->setReturnByClass(get_class($this->getContainer()), '');
     include_once './Services/Object/classes/class.ilObjectGUI.php';
     $_SESSION['saved_post'] = $_POST['id'];
     $object = new ilObjectGUI(array(), 0, false, false);
     $object->confirmedDeleteObject();
     return true;
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:12,代碼來源:class.ilAdministrationCommandGUI.php

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

示例13: _goto

 /**
  * goto target group
  */
 function _goto($a_user)
 {
     global $ilAccess, $ilErr, $lng;
     $a_target = USER_FOLDER_ID;
     if ($ilAccess->checkAccess("read", "", $a_target)) {
         ilUtil::redirect("ilias.php?baseClass=ilAdministrationGUI&ref_id=" . $a_target . "&jmpToUser=" . $a_user);
         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,代碼行數:18,代碼來源:class.ilObjUserFolderGUI.php

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

示例15: buildTabs

 /**
  * Builds tabs and subtabs using given $tabs, $config and $command
  * parameters.
  * @param ilTabsGUI $tabs
  * @param array     $config
  * @param array     $command
  */
 private function buildTabs(ilTabsGUI $tabs, $config, $command)
 {
     /**
      * @var $rbacsystem ilRbacSystem
      */
     global $rbacsystem;
     require_once 'Modules/Chatroom/classes/class.ilChatroom.php';
     foreach ($config as $id => $tabDefinition) {
         if (!ilChatroom::checkUserPermissions($tabDefinition['permission'], $this->gui->getRefId(), false)) {
             continue;
         } else {
             if (isset($tabDefinition['enabled']) && !$tabDefinition['enabled']) {
                 continue;
             }
         }
         $tabs->addTab($id, $this->getLabel($tabDefinition, $id), $tabDefinition['link']);
         if ($command[0] == $id && isset($tabDefinition['subtabs']) && is_array($tabDefinition['subtabs'])) {
             foreach ($tabDefinition['subtabs'] as $subid => $subTabDefinition) {
                 if (!$rbacsystem->checkAccess($subTabDefinition['permission'], $this->gui->getRefId())) {
                     continue;
                 } else {
                     if (isset($subTabDefinition['enabled']) && !$subTabDefinition['enabled']) {
                         continue;
                     }
                 }
                 $tabs->addSubTab($subid, $this->getLabel($subTabDefinition, $subid), $subTabDefinition['link']);
             }
         }
     }
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:37,代碼來源:class.ilChatroomTabFactory.php


注:本文中的ilObjectGUI類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。