本文整理汇总了PHP中ilCtrl::forwardCommand方法的典型用法代码示例。如果您正苦于以下问题:PHP ilCtrl::forwardCommand方法的具体用法?PHP ilCtrl::forwardCommand怎么用?PHP ilCtrl::forwardCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilCtrl
的用法示例。
在下文中一共展示了ilCtrl::forwardCommand方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: forward
/**
* forward method
*/
public function forward()
{
$this->tabs->setTabActive('settings');
$this->lng->loadLanguageModule('tax');
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
$questionList = new ilAssQuestionList($this->db, $this->lng, $this->pluginAdmin, $this->poolOBJ->getId());
$questionList->load();
require_once 'Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php';
$taxGUI = new ilObjTaxonomyGUI();
$taxGUI->setAssignedObject($this->poolOBJ->getId());
$taxGUI->setMultiple(true);
$taxGUI->activateAssignedItemSorting($questionList, 'qpl', $this->poolOBJ->getId(), 'quest');
$this->ctrl->forwardCommand($taxGUI);
}
示例2: executeCommand
public function executeCommand()
{
if ($this->isAccessDenied()) {
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
$nextClass = $this->ctrl->getNextClass();
$this->manageTabs($nextClass);
switch ($nextClass) {
case 'ilassquestionskillassignmentsgui':
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
$questionList = new ilAssQuestionList($this->db, $this->lng, $this->pluginAdmin);
$questionList->setParentObjId($this->poolOBJ->getId());
$questionList->setQuestionInstanceTypeFilter(ilAssQuestionList::QUESTION_INSTANCE_TYPE_ORIGINALS);
$questionList->load();
$gui = new ilAssQuestionSkillAssignmentsGUI($this->ctrl, $this->access, $this->tpl, $this->lng, $this->db);
$gui->setAssignmentEditingEnabled(true);
$gui->setQuestionContainerId($this->poolOBJ->getId());
$gui->setQuestionList($questionList);
$this->ctrl->forwardCommand($gui);
break;
case 'ilassquestionskillusagestablegui':
$gui = new ilAssQuestionSkillUsagesTableGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->poolOBJ->getId());
$this->ctrl->forwardCommand($gui);
break;
}
}
示例3: executeCommand
public function executeCommand()
{
if ($this->isAccessDenied()) {
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
$nextClass = $this->ctrl->getNextClass();
$this->manageTabs($nextClass);
switch ($nextClass) {
case 'ilassquestionskillassignmentsgui':
$questionContainerId = $this->getQuestionContainerId();
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
$questionList = new ilAssQuestionList($this->db, $this->lng, $this->pluginAdmin);
$questionList->setParentObjId($questionContainerId);
$questionList->setQuestionInstanceTypeFilter($this->getRequiredQuestionInstanceTypeFilter());
$questionList->load();
$gui = new ilAssQuestionSkillAssignmentsGUI($this->ctrl, $this->access, $this->tpl, $this->lng, $this->db);
$gui->setAssignmentEditingEnabled($this->isAssignmentEditingRequired());
$gui->setQuestionContainerId($questionContainerId);
$gui->setQuestionList($questionList);
if ($this->testOBJ->isFixedTest()) {
$gui->setQuestionOrderSequence($this->testOBJ->getQuestions());
} else {
$gui->setAssignmentConfigurationHintMessage($this->buildAssignmentConfigurationInPoolHintMessage());
}
$this->ctrl->forwardCommand($gui);
break;
case 'iltestskilllevelthresholdsgui':
$gui = new ilTestSkillLevelThresholdsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ->getTestId());
$gui->setQuestionAssignmentColumnsEnabled(!$this->testOBJ->isRandomTest());
$gui->setQuestionContainerId($this->getQuestionContainerId());
$this->ctrl->forwardCommand($gui);
break;
}
}
示例4: switch
/**
* execute command
*/
public function &executeCommand()
{
global $ilCtrl;
// determine next class in the call structure
$next_class = $this->ilCtrl->getNextClass($this);
switch ($next_class) {
case 'ilrepositorysearchgui':
include_once './Services/Search/classes/class.ilRepositorySearchGUI.php';
$rep_search =& new ilRepositorySearchGUI();
$this->ilCtrl->setReturn($this, 'perminfo');
$this->ilCtrl->forwardCommand($rep_search);
break;
default:
$cmd = $this->ilCtrl->getCmd();
$this->{$cmd}();
break;
}
}
示例5: executeCommand
public function executeCommand()
{
if ($this->isAccessDenied()) {
$this->ilias->raiseError($this->lng->txt("permission_denied"), $this->ilias->error_obj->MESSAGE);
}
$nextClass = $this->ctrl->getNextClass();
$this->manageTabs($nextClass);
switch ($nextClass) {
case 'iltestskillquestionassignmentsgui':
$gui = new ilTestSkillQuestionAssignmentsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ);
$this->ctrl->forwardCommand($gui);
break;
case 'iltestskilllevelthresholdsgui':
$gui = new ilTestSkillLevelThresholdsGUI($this->ctrl, $this->tpl, $this->lng, $this->db, $this->testOBJ);
$this->ctrl->forwardCommand($gui);
break;
}
}
示例6: executeCommand
/**
* @return bool
* @throws Exception
* @throws ilCtrlException
* @throws ilException
*/
public function executeCommand()
{
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
switch ($next_class) {
case 'ilrepositorysearchgui':
switch ($cmd) {
case 'addUserFromAutoComplete':
if ($_GET['addusertype'] == "staff") {
$this->addStaff();
} elseif ($_GET['addusertype'] == "other") {
$this->addOtherRoles();
}
break;
default:
$repo = new ilRepositorySearchGUI();
$this->ctrl->forwardCommand($repo);
break;
}
break;
default:
switch ($cmd) {
case 'showStaff':
$this->tabs_gui->activateSubTab("show_staff");
$this->showStaff();
break;
case 'showOtherRoles':
$this->tabs_gui->activateSubTab("show_other_roles");
$this->showOtherRoles();
break;
case 'showStaffRec':
$this->tabs_gui->activateSubTab("show_staff_rec");
$this->showStaffRec();
break;
case 'confirmRemoveFromRole':
case 'confirmRemoveFromEmployees':
case 'confirmRemoveFromSuperiors':
$this->confirmRemoveUser($cmd);
break;
case 'addStaff':
case 'addOtherRoles':
case 'fromSuperiorToEmployee':
case 'fromEmployeeToSuperior':
case 'removeFromSuperiors':
case 'removeFromEmployees':
case 'removeFromRole':
$this->{$cmd}();
break;
default:
throw new ilException("Unknown command for command class ilOrgUnitStaffGUI: " . $cmd);
break;
}
break;
}
return true;
}
示例7: executeCommand
/**
*
*/
public function executeCommand()
{
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
$this->prepareOutput();
switch ($next_class) {
case 'ilpermissiongui':
$this->tabs_gui->setTabActive('perm_settings');
require_once 'Services/AccessControl/classes/class.ilPermissionGUI.php';
$perm_gui = new ilPermissionGUI($this);
$this->ctrl->forwardCommand($perm_gui);
break;
default:
if ($cmd == '' || $cmd == 'view') {
$cmd = 'settings';
}
$this->{$cmd}();
break;
}
}
示例8: executeCommand
/**
*
*/
public function executeCommand()
{
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
switch ($next_class) {
case 'ilrepositorysearchgui':
include_once 'Services/Search/classes/class.ilRepositorySearchGUI.php';
$rep_search = new ilRepositorySearchGUI();
$rep_search->setCallback($this, 'addModerator');
$this->ctrl->setReturn($this, 'showModerators');
$this->ctrl->forwardCommand($rep_search);
break;
default:
if (!$cmd) {
$cmd = 'showModerators';
}
$this->{$cmd}();
break;
}
}
示例9: executeCommand
public function executeCommand()
{
if (!$this->access->checkAccess("write", "", $this->testOBJ->getRefId())) {
ilUtil::sendFailure($this->lng->txt("cannot_edit_test"), true);
$this->ctrl->redirectByClass('ilObjTestGUI', "infoScreen");
}
if ($this->isAvoidManipulationRedirectRequired()) {
ilUtil::sendFailure($this->lng->txt("tst_msg_cannot_modify_random_question_set_conf_due_to_part"), true);
$this->ctrl->redirect($this);
}
$this->handleTabs();
$nextClass = $this->ctrl->getNextClass();
switch ($nextClass) {
case 'ilTestRandomQuestionSetPoolDefinitionFormGUI':
$formGUI = new ilTestRandomQuestionSetPoolDefinitionFormGUI($this->ctrl, $this->lng, $this->testOBJ, $this, $this->questionSetConfig);
$this->ctrl->forwardCommand($formGUI);
break;
default:
$cmd = $this->ctrl->getCmd(self::CMD_SHOW_GENERAL_CONFIG_FORM) . 'Cmd';
$this->{$cmd}();
}
}
示例10: executeCommand
public function executeCommand()
{
$this->tabs->setTabActive(self::TAB_ID_QUESTION_PREVIEW);
$this->lng->loadLanguageModule('content');
$nextClass = $this->ctrl->getNextClass($this);
switch ($nextClass) {
case 'ilassquestionhintrequestgui':
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
$gui = new ilAssQuestionHintRequestGUI($this, self::CMD_SHOW, $this->questionGUI, $this->hintTracking);
$this->ctrl->forwardCommand($gui);
break;
case 'ilassspecfeedbackpagegui':
case 'ilassgenfeedbackpagegui':
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php';
$forwarder = new ilAssQuestionFeedbackPageObjectCommandForwarder($this->questionOBJ, $this->ctrl, $this->tabs, $this->lng);
$forwarder->forward();
break;
default:
$cmd = $this->ctrl->getCmd(self::CMD_SHOW) . 'Cmd';
$this->{$cmd}();
}
}
示例11: executeCommand
public function executeCommand()
{
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
parent::prepareOutput();
$this->showTree();
switch ($next_class) {
case "illocalusergui":
$this->tabs_gui->setTabActive('administrate_users');
$ilLocalUserGUI = new ilLocalUserGUI($this);
$this->ctrl->forwardCommand($ilLocalUserGUI);
break;
case "ilextidgui":
$this->tabs_gui->setTabActive("settings");
$this->setSubTabsSettings();
$ilExtIdGUI = new ilExtIdGUI($this);
$this->ctrl->forwardCommand($ilExtIdGUI);
break;
case "ilorgunitsimpleimportgui":
$this->tabs_gui->setTabActive("view_content");
$ilOrgUnitSimpleImportGUI = new ilOrgUnitSimpleImportGUI($this);
$this->ctrl->forwardCommand($ilOrgUnitSimpleImportGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
break;
case "ilorgunitsimpleuserimportgui":
$this->tabs_gui->setTabActive("view_content");
$ilOrgUnitSimpleUserImportGUI = new ilOrgUnitSimpleUserImportGUI($this);
$this->ctrl->forwardCommand($ilOrgUnitSimpleUserImportGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
break;
case "ilorgunitstaffgui":
case "ilrepositorysearchgui":
$this->tabs_gui->setTabActive('orgu_staff');
$ilOrgUnitStaffGUI = new ilOrgUnitStaffGUI($this);
$this->ctrl->forwardCommand($ilOrgUnitStaffGUI);
break;
case "ilobjusergui":
switch ($cmd) {
case "create":
$ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['ref_id'], true, false);
$ilObjUserGUI->setCreationMode(true);
$this->ctrl->forwardCommand($ilObjUserGUI);
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
break;
case "view":
case "update":
$ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['obj_id'], false, false);
$ilObjUserGUI->setCreationMode(false);
$this->ctrl->forwardCommand($ilObjUserGUI);
break;
case "cancel":
$this->ctrl->redirectByClass("illocalusergui", "index");
break;
}
break;
case "ilobjuserfoldergui":
$ilObjUserFolderGUI = new ilObjUserFolderGUI("", (int) $_GET['ref_id'], true, false);
$ilObjUserFolderGUI->setUserOwnerId((int) $_GET['ref_id']);
$ilObjUserFolderGUI->setCreationMode(true);
$this->ctrl->forwardCommand($ilObjUserFolderGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
break;
case "ilinfoscreengui":
$this->tabs_gui->setTabActive("info_short");
if (!$this->ilAccess->checkAccess("visible", "", $this->ref_id)) {
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
}
$info = new ilInfoScreenGUI($this);
$this->ctrl->forwardCommand($info);
break;
case 'ilpermissiongui':
$this->tabs_gui->setTabActive('perm_settings');
$ilPermissionGUI = new ilPermissionGUI($this);
$this->ctrl->forwardCommand($ilPermissionGUI);
break;
case "ilcommonactiondispatchergui":
include_once "Services/Object/classes/class.ilCommonActionDispatcherGUI.php";
$gui = ilCommonActionDispatcherGUI::getInstanceFromAjaxCall();
$this->ctrl->forwardCommand($gui);
break;
case 'illearningprogressgui':
case 'illplistofprogressgui':
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt('backto_staff'), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", 'showStaff'));
if (!ilObjOrgUnitAccess::_checkAccessToUserLearningProgress($this->object->getRefid(), $_GET['obj_id'])) {
ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
$this->ctrl->redirectByClass("ilOrgUnitStaffGUI", "showStaff");
}
$this->ctrl->saveParameterByClass("illearningprogressgui", "obj_id");
$this->ctrl->saveParameterByClass("illearningprogressgui", "recursive");
include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
$new_gui =& new ilLearningProgressGUI(ilLearningProgressGUI::LP_CONTEXT_USER_FOLDER, USER_FOLDER_ID, $_GET["obj_id"]);
$this->ctrl->forwardCommand($new_gui);
break;
case 'ilorgunitexportgui':
$this->tabs_gui->setTabActive('export');
$ilOrgUnitExportGUI = new ilOrgUnitExportGUI($this);
//.........这里部分代码省略.........
示例12: executeCommand
public function executeCommand()
{
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
parent::prepareOutput();
//Otherwise move-Objects would not work
if ($cmd != "cut") {
$this->showTree();
}
switch ($next_class) {
case "illocalusergui":
if (!ilObjOrgUnitAccess::_checkAccessAdministrateUsers((int) $_GET['ref_id'])) {
ilUtil::sendFailure($this->lng->txt("permission_denied"), true);
$this->ctrl->redirect($this);
}
$this->tabs_gui->setTabActive('administrate_users');
$ilLocalUserGUI = new ilLocalUserGUI($this);
$this->ctrl->forwardCommand($ilLocalUserGUI);
break;
case "ilorgunitsimpleimportgui":
$this->tabs_gui->setTabActive("view_content");
$ilOrgUnitSimpleImportGUI = new ilOrgUnitSimpleImportGUI($this);
$this->ctrl->forwardCommand($ilOrgUnitSimpleImportGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
break;
case "ilorgunitsimpleuserimportgui":
$this->tabs_gui->setTabActive("view_content");
$ilOrgUnitSimpleUserImportGUI = new ilOrgUnitSimpleUserImportGUI($this);
$this->ctrl->forwardCommand($ilOrgUnitSimpleUserImportGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this));
break;
case "ilorgunitstaffgui":
case "ilrepositorysearchgui":
$this->tabs_gui->setTabActive('orgu_staff');
$ilOrgUnitStaffGUI = new ilOrgUnitStaffGUI($this);
$this->ctrl->forwardCommand($ilOrgUnitStaffGUI);
break;
case "ilobjusergui":
switch ($cmd) {
case "create":
$ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['ref_id'], true, false);
$ilObjUserGUI->setCreationMode(true);
$this->ctrl->forwardCommand($ilObjUserGUI);
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
break;
case "save":
$ilObjUserGUI = new ilObjUserGUI("", $_GET['ref_id'], true, false);
$ilObjUserGUI->setCreationMode(true);
$this->ctrl->forwardCommand($ilObjUserGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
break;
case "view":
case "update":
$ilObjUserGUI = new ilObjUserGUI("", (int) $_GET['obj_id'], false, false);
$ilObjUserGUI->setCreationMode(false);
$this->ctrl->forwardCommand($ilObjUserGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
break;
case "cancel":
$this->ctrl->redirectByClass("illocalusergui", "index");
break;
}
break;
case "ilobjuserfoldergui":
switch ($cmd) {
case "view":
$this->ctrl->redirectByClass("illocalusergui", "index");
break;
default:
$ilObjUserFolderGUI = new ilObjUserFolderGUI("", (int) $_GET['ref_id'], true, false);
$ilObjUserFolderGUI->setUserOwnerId((int) $_GET['ref_id']);
$ilObjUserFolderGUI->setCreationMode(true);
$this->ctrl->forwardCommand($ilObjUserFolderGUI);
$this->tabs_gui->clearTargets();
$this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTargetByClass("illocalusergui", 'index'));
break;
}
break;
case "ilinfoscreengui":
$this->tabs_gui->setTabActive("info_short");
if (!$this->ilAccess->checkAccess("read", "", $this->ref_id) and !$this->ilAccess->checkAccess("visible", "", $this->ref_id)) {
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE);
}
$info = new ilInfoScreenGUI($this);
$this->parseInfoScreen($info);
$this->ctrl->forwardCommand($info);
// I guess this is how it was supposed to work, but it doesn't... it won't respect our sub-id and sub-type when creating the objects!
// So we reimplemented the stuff in the method parseInfoScreen()
// $info = new ilInfoScreenGUI($this);
// $amd_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_INFO, 'orgu', $this->object->getId(), 'orgu_type', $this->object->getOrgUnitTypeId());
// $amd_gui->setInfoObject($info);
// $amd_gui->setSelectedOnly(true);
// $amd_gui->parse();
// $this->ctrl->forwardCommand($info);
break;
case 'ilpermissiongui':
//.........这里部分代码省略.........