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


PHP ilCtrl::getLinkTargetByClass方法代码示例

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


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

示例1: modifyGUI

 /**
  * Modify GUI objects, before they generate ouput
  *
  * @param string $a_comp component
  * @param string $a_part string that identifies the part of the UI that is handled
  * @param string $a_par array of parameters (depend on $a_comp and $a_part)
  */
 function modifyGUI($a_comp, $a_part, $contextElements = array())
 {
     // currently only implemented for $ilTabsGUI
     // Zeigt an, in welchem Modul man sich gerade in ILIAS befindet
     /*
     		if ($part == "tabs") {
     			var_dump($this->ctrl->getCalHistory());
     		}
     		/**/
     // tabs hook
     // note that you currently do not get information in $a_comp
     // here. So you need to use general GET/POST information
     // like $_GET["baseClass"], $ilCtrl->getCmdClass/getCmd
     // to determine the context.
     //if ($a_part == "tabs")
     if ($a_part == "tabs" && $this->isINCourseGUI()) {
         // $a_par["tabs"] is ilTabsGUI object
         /** @var ilTabsGUI $tabs */
         $tabs = $contextElements["tabs"];
         $this->ctrl->saveParameterByClass('ilCourseEmailSubscriptionGUI', 'ref_id');
         // saveparameterbyclass behält Einstellungsvariablen (ref_id) auch bei neuem Link
         $tabs->addTab('courseSubscription', 'Mitglieder Einschreiben', $this->ctrl->getLinkTargetByClass(array('ilUIPluginRouterGUI', 'ilCourseEmailSubscriptionGUI'), 'show'));
         //$tabs->addTab('test', 'test', 'test');
         /*
         $tabs = $contextElements["tabs"];
         $this->ctrl->saveParameterByClass('ilUIExampleUIHookGUI', 'ref_id');
         $tabs->addTab('courseSubscription', 'Mitglieder Einschreiben', $this->ctrl->getLinkTargetByClass(array('ilUIPluginRouterGUI', 'ilUIExampleUIHookGUI'), 'show'));
         */
     }
 }
开发者ID:prante,项目名称:CoreEmailSubscription,代码行数:37,代码来源:class.ilUIExampleUIHookGUI.php

示例2: __construct

 /**
  * @param ilUDFCheckGUI $parent_obj
  * @param string        $parent_cmd
  * @param string        $template_context
  */
 public function __construct(ilUDFCheckGUI $parent_obj, $parent_cmd = ilUDFCheckGUI::CMD_INDEX, $template_context = "")
 {
     /**
      * @var              $ilCtrl ilCtrl
      * @var ilToolbarGUI $ilToolbar
      */
     global $ilCtrl, $ilToolbar;
     $this->ctrl = $ilCtrl;
     $this->pl = ilUserDefaultsPlugin::getInstance();
     $this->toolbar = $ilToolbar;
     $this->setPrefix(self::USR_DEF_CONTENT);
     $this->setFormName(self::USR_DEF_CONTENT);
     $this->setId(self::USR_DEF_CONTENT);
     $this->setTitle($this->pl->txt('check_table_title'));
     parent::__construct($parent_obj, $parent_cmd, $template_context);
     $this->ctrl->saveParameter($parent_obj, $this->getNavParameter());
     $this->setEnableNumInfo(true);
     $this->setFormAction($this->ctrl->getFormAction($parent_obj));
     $this->addColumns();
     $this->setDefaultOrderField('title');
     $this->setExternalSorting(true);
     $this->setExternalSegmentation(true);
     $this->setRowTemplate('Customizing/global/plugins/Services/EventHandling/EventHook/UserDefaults/templates/default/tpl.settings_row.html');
     $this->parseData();
     $this->toolbar->addButton($this->pl->txt('check_back'), $this->ctrl->getLinkTargetByClass('ilUserSettingsGUI', ilUserSettingsGUI::CMD_INDEX));
     $this->toolbar->addButton($this->pl->txt('check_add'), $this->ctrl->getLinkTarget($parent_obj, ilUDFCheckGUI::CMD_ADD), '', '', '', '', 'submit emphsubmit');
 }
开发者ID:JKN-INC,项目名称:UserDefaults,代码行数:32,代码来源:class.ilUDFCheckTableGUI.php

示例3: manageTabs

 public function manageTabs($activeSubTabId)
 {
     $link = $this->ctrl->getLinkTargetByClass('iltestskillquestionassignmentsgui', ilTestSkillQuestionAssignmentsGUI::CMD_SHOW_SKILL_QUEST_ASSIGNS);
     $this->tabs->addSubTab('iltestskillquestionassignmentsgui', $this->lng->txt('tst_skl_sub_tab_quest_assign'), $link);
     $link = $this->ctrl->getLinkTargetByClass('iltestskilllevelthresholdsgui', ilTestSkillLevelThresholdsGUI::CMD_SHOW_SKILL_THRESHOLDS);
     $this->tabs->addSubTab('iltestskilllevelthresholdsgui', $this->lng->txt('tst_skl_sub_tab_thresholds'), $link);
     $this->tabs->activateTab('tst_tab_competences');
     $this->tabs->activateSubTab($activeSubTabId);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:9,代码来源:class.ilTestSkillAdministrationGUI.php

示例4: manageTabs

 public function manageTabs($activeSubTabId)
 {
     $link = $this->ctrl->getLinkTargetByClass('ilAssQuestionSkillAssignmentsGUI', ilAssQuestionSkillAssignmentsGUI::CMD_SHOW_SKILL_QUEST_ASSIGNS);
     $this->tabs->addSubTab('ilassquestionskillassignmentsgui', $this->lng->txt('qpl_skl_sub_tab_quest_assign'), $link);
     $link = $this->ctrl->getLinkTargetByClass('ilAssQuestionSkillUsagesTableGUI', ilAssQuestionSkillUsagesTableGUI::CMD_SHOW);
     $this->tabs->addSubTab('ilassquestionskillusagestablegui', $this->lng->txt('qpl_skl_sub_tab_usages'), $link);
     $this->tabs->activateTab('qpl_tab_competences');
     $this->tabs->activateSubTab($activeSubTabId);
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:9,代码来源:class.ilQuestionPoolSkillAdministrationGUI.php

示例5: buildActionMenu

 /**
  * Build action menu
  *
  * @param array $a_set
  * @return ilAdvancedSelectionListGUI
  */
 protected function buildActionMenu(array $a_set)
 {
     $list = new ilAdvancedSelectionListGUI();
     $list->setId($a_set['id']);
     $list->setListTitle($this->pl->txt('actions'));
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'type_id', $this->type->getId());
     $this->ctrl->setParameterByClass('srcertificatetypegui', 'custom_setting_id', $a_set['id']);
     $list->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'editCustomSetting'));
     $list->addItem($this->lng->txt('delete'), 'delete', $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'confirmDeleteCustomSetting'));
     $this->ctrl->clearParametersByClass('srcertificatetypegui');
     return $list;
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:18,代码来源:class.srCertificateTypeCustomSettingsTableGUI.php

示例6: getAdminTabs

 /**
  * Get administration tabs
  * @param ilTabsGUI $tabs_gui
  */
 public function getAdminTabs(ilTabsGUI $tabs_gui)
 {
     /**
      * @var $rbacsystem ilRbacSystem
      */
     global $rbacsystem;
     if ($rbacsystem->checkAccess('read', $this->object->getRefId())) {
         $tabs_gui->addTarget('overview', $this->ctrl->getLinkTarget($this, 'overview'));
     }
     if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
         $tabs_gui->addTarget('perm_settings', $this->ctrl->getLinkTargetByClass(array(get_class($this), 'ilpermissiongui'), 'perm'), array('perm', 'info', 'owner'), 'ilpermissiongui');
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:17,代码来源:class.ilObjSystemCheckGUI.php

示例7: fillRow

 /**
  * Pass data to row template
  *
  * @param array $set
  */
 public function fillRow($set)
 {
     $this->tpl->setVariable('TITLE', $set['title']);
     $this->tpl->setVariable('DESCRIPTION', $set['description']);
     $this->tpl->setVariable('DEFAULT_LANG', $set['default_language']);
     $this->tpl->setVariable('ICON', $set['icon']);
     $this->ctrl->setParameterByClass("ilorgunittypegui", "type_id", $set['id']);
     $selection = new ilAdvancedSelectionListGUI();
     $selection->setListTitle($this->lng->txt('Actions'));
     $selection->setId('action_orgu_type' . $set['id']);
     $selection->addItem($this->lng->txt('edit'), 'edit', $this->ctrl->getLinkTargetByClass('ilorgunittypegui', 'edit'));
     $selection->addItem($this->lng->txt('delete'), 'delete', $this->ctrl->getLinkTargetByClass('ilorgunittypegui', 'delete'));
     $this->tpl->setVariable('ACTIONS', $selection->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:19,代码来源:class.ilOrgUnitTypeTableGUI.php

示例8: fillRow

 /**
  * @param array $a_set
  */
 protected function fillRow(array $a_set)
 {
     // For checkboxes in first column
     if (count($this->getOption('actions_multi')) && $a_set['status'] == 3) {
         $this->tpl->setCurrentBlock('CHECKBOXES');
         $this->tpl->setVariable('VALUE', $a_set['id']);
         $this->tpl->parseCurrentBlock();
     } else {
         $this->tpl->setCurrentBlock('COL');
         $this->tpl->setVariable('VALUE', '');
         $this->tpl->parseCurrentBlock();
     }
     $utc = ilCertificateConfig::get('time_format_utc');
     $date_function = $utc ? 'gmdate' : 'date';
     foreach ($this->columns as $k => $column) {
         $value = is_null($a_set[$column]) ? '' : $a_set[$column];
         if ($this->isColumnSelected($column)) {
             // Format dates
             if (in_array($column, array('valid_from', 'valid_to')) && $value != '') {
                 $time = strtotime($value);
                 $time = $utc ? $time + srCertificate::TIME_ZONE_CORRECTION : $time;
                 switch ($this->user->getDateFormat()) {
                     case ilCalendarSettings::DATE_FORMAT_DMY:
                         $value = $date_function('d.m.Y', $time);
                         break;
                     case ilCalendarSettings::DATE_FORMAT_MDY:
                         $value = $date_function('m/d/Y', $time);
                         break;
                 }
             } elseif (in_array($column, array('valid_from', 'valid_to')) && $value == '') {
                 $value = $this->pl->txt('unlimited');
             }
             if ($column == 'status') {
                 $value = $this->pl->txt("cert_status_" . (int) $value);
             }
             // Set value
             $this->tpl->setCurrentBlock('COL');
             $this->tpl->setVariable('VALUE', $value);
             $this->tpl->parseCurrentBlock();
         }
     }
     // Actions
     if (count($this->getOption('actions'))) {
         if ($this->hasAction($a_set)) {
             $this->ctrl->setParameterByClass(get_class($this->parent_obj), 'cert_id', $a_set['id']);
             $this->ctrl->setParameterByClass(get_class($this->parent_obj), 'status', $a_set['status']);
             $async_url = $this->ctrl->getLinkTargetByClass(array(ilCertificatePlugin::getBaseClass(), get_class($this->parent_obj)), 'buildActions', '', true);
             $actions = new ilAdvancedSelectionListGUI();
             $actions->setId('action_list_' . $a_set['id']);
             $actions->setAsynchUrl($async_url);
             $actions->setAsynch(true);
             $actions->setListTitle($this->pl->txt('actions'));
         } else {
             $actions = ' ';
         }
         $this->tpl->setCurrentBlock('ACTIONS');
         $this->tpl->setVariable('ACTIONS', is_string($actions) ? $actions : $actions->getHTML());
         $this->tpl->parseCurrentBlock();
     }
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:63,代码来源:class.srCertificateTableGUI.php

示例9: listFields

 /**
  * list fields
  */
 public function listFields()
 {
     // Show tables
     require_once "./Modules/DataCollection/classes/class.ilDataCollectionTable.php";
     $tables = $this->parent_obj->object->getTables();
     foreach ($tables as $table) {
         $options[$table->getId()] = $table->getTitle();
     }
     include_once './Services/Form/classes/class.ilSelectInputGUI.php';
     $table_selection = new ilSelectInputGUI('', 'table_id');
     $table_selection->setOptions($options);
     $table_selection->setValue($this->table_id);
     $this->toolbar->setFormAction($this->ctrl->getFormActionByClass("ilDataCollectionFieldListGUI", "doTableSwitch"));
     $this->toolbar->addText($this->lng->txt("dcl_table"));
     $this->toolbar->addInputItem($table_selection);
     $this->toolbar->addFormButton($this->lng->txt('change'), 'doTableSwitch');
     $this->toolbar->addSeparator();
     $this->toolbar->addButton($this->lng->txt("dcl_add_new_table"), $this->ctrl->getLinkTargetByClass("ildatacollectiontableeditgui", "create"));
     $this->toolbar->addSeparator();
     $this->ctrl->setParameterByClass("ildatacollectiontableeditgui", "table_id", $this->table_id);
     $this->toolbar->addButton($this->lng->txt("dcl_table_settings"), $this->ctrl->getLinkTargetByClass("ildatacollectiontableeditgui", "edit"));
     $this->toolbar->addButton($this->lng->txt("dcl_delete_table"), $this->ctrl->getLinkTargetByClass("ildatacollectiontableeditgui", "confirmDelete"));
     $this->toolbar->addButton($this->lng->txt("dcl_add_new_field"), $this->ctrl->getLinkTargetByClass("ildatacollectionfieldeditgui", "create"));
     // requested not to implement this way...
     //        $tpl->addJavaScript("Modules/DataCollection/js/fastTableSwitcher.js");
     require_once './Modules/DataCollection/classes/class.ilDataCollectionFieldListTableGUI.php';
     $list = new ilDataCollectionFieldListTableGUI($this, $this->ctrl->getCmd(), $this->table_id);
     $this->tpl->setContent($list->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:32,代码来源:class.ilDataCollectionFieldListGUI.php

示例10: setSubTabsSettings

 /**
  * @param $active_tab_id
  */
 protected function setSubTabsSettings($active_tab_id)
 {
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     $this->tabs_gui->addSubTab('edit_settings', $this->lng->txt('settings'), $this->ctrl->getLinkTarget($this, 'editSettings'));
     $this->tabs_gui->addSubTab("edit_translations", $this->lng->txt("obj_multilinguality"), $this->ctrl->getLinkTargetByClass("iltranslationgui", "editTranslations"));
     $ilOrgUnitType = $this->object->getOrgUnitType();
     if ($ilOrgUnitType instanceof ilOrgUnitType) {
         if (count($ilOrgUnitType->getAssignedAdvancedMDRecords(true))) {
             $this->tabs_gui->addSubTab('edit_advanced_settings', $this->lng->txt('orgu_adv_settings'), $this->ctrl->getLinkTarget($this, 'editAdvancedSettings'));
         }
     }
     $this->tabs_gui->setSubTabActive($active_tab_id);
     switch ($next_class) {
         case 'iltranslationgui':
             $this->tabs_gui->setSubTabActive("edit_translations");
             break;
         case '':
             switch ($cmd) {
                 case 'editSettings':
                     $this->tabs_gui->setSubTabActive('edit_settings');
                     break;
                 case 'editAdvancedSettings':
                 case 'updateAdvancedSettings':
                     $this->tabs_gui->setSubTabActive('edit_advanced_settings');
                     break;
             }
             break;
     }
     return;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:34,代码来源:class.ilObjOrgUnitGUI.php

示例11: build

 public function build()
 {
     $this->setId('tst_results_toolbar');
     if ($this->isSkillResultButtonEnabled()) {
         require_once 'Modules/Test/classes/class.ilTestSkillEvaluationGUI.php';
         $link = ilLinkButton::getInstance();
         // always returns a new instance
         $link->setUrl($this->ctrl->getLinkTargetByClass('ilTestSkillEvaluationGUI', ilTestSkillEvaluationGUI::CMD_SHOW));
         $link->setCaption($this->lng->txt("tst_show_comp_results"), false);
         $this->addButtonInstance($link);
         $this->addSeparator();
     }
     $this->addButton($this->lng->txt('print'), 'javascript:window.print();');
     if (strlen($this->getPdfExportLinkTarget())) {
         require_once 'Services/UIComponent/Button/classes/class.ilLinkButton.php';
         $link = ilLinkButton::getInstance();
         // always returns a new instance
         $link->setUrl($this->getPdfExportLinkTarget());
         $link->setCaption($this->getPdfExportLabel(), false);
         $link->setOmitPreventDoubleSubmission(true);
         $this->addButtonInstance($link);
     }
     if (strlen($this->getCertificateLinkTarget())) {
         $this->addButton($this->lng->txt('certificate'), $this->getCertificateLinkTarget());
     }
     if (strlen($this->getShowBestSolutionsLinkTarget())) {
         $this->addSeparator();
         $this->addButton($this->lng->txt('tst_btn_show_best_solutions'), $this->getShowBestSolutionsLinkTarget());
     } elseif (strlen($this->getHideBestSolutionsLinkTarget())) {
         $this->addSeparator();
         $this->addButton($this->lng->txt('tst_btn_hide_best_solutions'), $this->getHideBestSolutionsLinkTarget());
     }
     if (count($this->getParticipantSelectorOptions())) {
         $this->addSeparator();
         require_once 'Services/Form/classes/class.ilSelectInputGUI.php';
         $sel = new ilSelectInputGUI('', 'active_id');
         $sel->setOptions($this->getParticipantSelectorOptionsWithHintOption());
         $this->addInputItem($sel);
         $link = ilLinkButton::getInstance();
         // always returns a new instance
         $link->setUrl('#');
         $link->setId('ilTestResultParticipantJumper');
         $link->setCaption($this->lng->txt('tst_res_jump_to_participant_btn'), false);
         $this->addButtonInstance($link);
         $this->tpl->addJavaScript('Modules/Test/js/ilTestResultParticipantSelector.js');
     }
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:47,代码来源:class.ilTestResultsToolbarGUI.php

示例12: build

 public function build()
 {
     if ($this->isTestResultButtonEnabled()) {
         $link = ilLinkButton::getInstance();
         // always returns a new instance
         $link->setUrl($this->ctrl->getLinkTargetByClass('ilTestEvaluationGUI', 'outUserResultsOverview'));
         $link->setCaption($this->lng->txt("tst_show_results"), false);
         $this->addButtonInstance($link);
         $this->addSeparator();
     }
     $this->setFormAction($this->ctrl->getFormAction($this->parentGUI));
     $select = new ilSelectInputGUI($this->lng->txt("tst_analysis"), self::SKILL_PROFILE_PARAM);
     $select->setOptions($this->buildEvaluationModeOptionsArray());
     $select->setValue($this->getSelectedEvaluationMode());
     $this->addInputItem($select, true);
     $this->addFormButton($this->lng->txt("select"), $this->parentCMD);
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:17,代码来源:class.ilTestSkillEvaluationToolbarGUI.php

示例13: showSettings

 /**
  * Show table with settings
  */
 public function showSettings()
 {
     $this->toolbar->addButton($this->pl->txt('add_new_custom_setting'), $this->ctrl->getLinkTargetByClass('srcertificatetypegui', 'addCustomSetting'));
     $table = new srCertificateTypeSettingsTableGUI($this, 'showSettings', $this->type);
     $table_custom_settings = new srCertificateTypeCustomSettingsTableGUI($this, 'showSettings', $this->type);
     $spacer = '<div style="height: 30px;"></div>';
     $this->tpl->setContent($table->getHTML() . $spacer . $table_custom_settings->getHTML());
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:11,代码来源:class.srCertificateTypeGUI.php

示例14: getPageObjectEditingLink

 /**
  * returns a link to page object editor for page object
  * with given type and id
  * 
  * @final
  * @access private
  * @param type $pageObjectType
  * @param type $pageObjectId
  * @return string $pageObjectEditingLink
  */
 private final function getPageObjectEditingLink($pageObjectType, $pageObjectId)
 {
     $cl = $this->getClassNameByType($pageObjectType, true);
     $this->ctrl->setParameterByClass($cl, 'feedback_type', $pageObjectType);
     $this->ctrl->setParameterByClass($cl, 'feedback_id', $pageObjectId);
     $linkHREF = $this->ctrl->getLinkTargetByClass($cl, 'edit');
     $linkTEXT = $this->lng->txt('tst_question_feedback_edit_page');
     return "<a href='{$linkHREF}'>{$linkTEXT}</a>";
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:19,代码来源:class.ilAssQuestionFeedback.php

示例15: manageTabs

 private function manageTabs($cmd)
 {
     $this->tabs->clearTargets();
     $this->tabs->setBackTarget($this->lng->txt('tst_results_back_introduction'), $this->ctrl->getLinkTargetByClass('ilObjTestGUI', 'infoScreen'));
     if ($this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired()) {
         require_once 'Services/Link/classes/class.ilLink.php';
         $courseLink = ilLink::_getLink($this->getObjectiveOrientedContainer()->getRefId());
         $this->tabs->setBack2Target($this->lng->txt('back_to_objective_container'), $courseLink);
     }
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:10,代码来源:class.ilTestSkillEvaluationGUI.php


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