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


PHP ilCtrl::getLinkTarget方法代码示例

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


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

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

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

示例3: fillRow

 /**
  * @param array $a_set
  */
 public function fillRow($a_set)
 {
     $ilUDFCheck = ilUDFCheck::find($a_set['id']);
     $ilUDFCheckGUI = new ilUDFCheckGUI($this->parent_obj);
     foreach ($this->getSelectableColumns() as $k => $v) {
         if ($k == 'actions') {
             $this->ctrl->setParameter($this->parent_obj, ilUDFCheckGUI::IDENTIFIER, $ilUDFCheck->getId());
             $this->ctrl->setParameter($ilUDFCheckGUI, ilUDFCheckGUI::IDENTIFIER, $ilUDFCheck->getId());
             $current_selection_list = new ilAdvancedSelectionListGUI();
             $current_selection_list->setListTitle($this->pl->txt('check_actions'));
             $current_selection_list->setId('check_actions' . $ilUDFCheck->getId());
             $current_selection_list->setUseImages(false);
             $current_selection_list->addItem($this->pl->txt('check_edit'), 'check_edit', $this->ctrl->getLinkTarget($this->parent_obj, ilUserSettingsGUI::CMD_EDIT));
             $current_selection_list->addItem($this->pl->txt('check_delete'), 'check_delete', $this->ctrl->getLinkTarget($this->parent_obj, ilUserSettingsGUI::CMD_CONFIRM_DELETE));
             $this->tpl->setCurrentBlock('td');
             $this->tpl->setVariable('VALUE', $current_selection_list->getHTML());
             $this->tpl->parseCurrentBlock();
             continue;
         }
         if ($this->isColumnSelected($k)) {
             if ($a_set[$k]) {
                 $this->tpl->setCurrentBlock('td');
                 $this->tpl->setVariable('VALUE', is_array($a_set[$k]) ? implode(", ", $a_set[$k]) : $a_set[$k]);
                 $this->tpl->parseCurrentBlock();
             } else {
                 $this->tpl->setCurrentBlock('td');
                 $this->tpl->setVariable('VALUE', ' ');
                 $this->tpl->parseCurrentBlock();
             }
         }
     }
 }
开发者ID:JKN-INC,项目名称:UserDefaults,代码行数:35,代码来源:class.ilUDFCheckTableGUI.php

示例4: showPage

 public function showPage()
 {
     global $lng, $ilToolbar;
     /**
      * @var $ilToolbar ilToolbarGUI
      */
     // :TODO: temporary legend of available placeholders
     if ($this->getOutputMode() == IL_PAGE_EDIT) {
         $delete_button = ilLinkButton::getInstance();
         $delete_button->setCaption('dcl_empty_view');
         $delete_button->setUrl($this->ctrl->getLinkTarget($this, 'confirmDelete'));
         $ilToolbar->addButtonInstance($delete_button);
         $activation_button = ilLinkButton::getInstance();
         if ($this->getPageObject()->getActive()) {
             $activation_button->setCaption('dcl_deactivate_view');
             $activation_button->setUrl($this->ctrl->getLinkTarget($this, 'deactivate'));
         } else {
             $activation_button->setCaption('dcl_activate_view');
             $activation_button->setUrl($this->ctrl->getLinkTarget($this, 'activate'));
         }
         $ilToolbar->addButtonInstance($activation_button);
         $legend = ilDataCollectionRecordViewViewdefinition::getAvailablePlaceholders($this->table_id);
         if (sizeof($legend)) {
             $this->setPrependingHtml("<span class=\"small\">" . $this->lng->txt("dcl_legend_placeholders") . ": " . implode(" ", $legend) . "</span>");
         }
     }
     return parent::showPage();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:28,代码来源:class.ilDataCollectionRecordViewViewdefinitionGUI.php

示例5: showUnitsOfCategory

 /**
  *
  */
 protected function showUnitsOfCategory()
 {
     /**
      * @var $ilToolbar ilToolbarGUI
      */
     global $ilToolbar;
     $category = $this->getCategoryById((int) $_GET['category_id'], false);
     $this->tpl->addJavaScript("./Services/JavaScript/js/Basic.js");
     $this->tpl->addJavaScript("./Services/Form/js/Form.js");
     $this->lng->loadLanguageModule('form');
     require_once 'Modules/TestQuestionPool/classes/tables/class.ilUnitTableGUI.php';
     $ilToolbar->addButton($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, $this->getUnitCategoryOverviewCommand()));
     if ($this->isCRUDContext()) {
         $ilToolbar->addButton($this->lng->txt('un_add_unit'), $this->ctrl->getLinkTarget($this, 'showUnitCreationForm'));
     }
     $table = new ilUnitTableGUI($this, 'showUnitsOfCategory', $category);
     $units = $this->repository->loadUnitsForCategory($category->getId());
     $data = array();
     foreach ($units as $unit) {
         /**
          * @var $unit assFormulaQuestionUnit
          */
         $data[] = array('unit_id' => $unit->getId(), 'unit' => $unit->getUnit(), 'baseunit' => $unit->getBaseunitTitle(), 'baseunit_id' => $unit->getBaseUnit(), 'factor' => $unit->getFactor(), 'sequence' => $unit->getSequence());
     }
     $table->setData($data);
     $this->tpl->setContent($table->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:30,代码来源:class.ilUnitConfigurationGUI.php

示例6: buildForm

 /**
  * builds the question set config form and initialises the fields
  * with the config currently saved in database
  * 
  * @return ilPropertyFormGUI $form
  */
 private function buildForm()
 {
     $this->questionSetConfig->loadFromDb($this->testOBJ->getTestId());
     require_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
     $form = new ilPropertyFormGUI();
     $form->setFormAction($this->ctrl->getFormAction($this));
     $form->setId("tst_form_dynamic_question_set_config");
     $form->setTitle($this->lng->txt('tst_form_dynamic_question_set_config'));
     $form->setTableWidth("100%");
     $hiddenInputTaxSelectOptAsyncUrl = new ilHiddenInputGUI('taxSelectOptAsyncUrl');
     $hiddenInputTaxSelectOptAsyncUrl->setValue($this->ctrl->getLinkTarget($this, self::CMD_GET_TAXONOMY_OPTIONS_ASYNC, '', true));
     $form->addItem($hiddenInputTaxSelectOptAsyncUrl);
     if ($this->testOBJ->participantDataExist()) {
         $pool = new ilNonEditableValueGUI($this->lng->txt('tst_input_dynamic_question_set_source_questionpool'), 'source_qpl_title');
         $pool->setValue($this->questionSetConfig->getSourceQuestionPoolSummaryString($this->lng, $this->tree));
         $pool->setDisabled(true);
         $form->addItem($pool);
     } else {
         $poolInput = new ilSelectInputGUI($this->lng->txt('tst_input_dynamic_question_set_source_questionpool'), 'source_qpl_id');
         $poolInput->setOptions($this->buildQuestionPoolSelectInputOptionArray($this->testOBJ->getAvailableQuestionpools(true, false, false, true, true)));
         $poolInput->setValue($this->questionSetConfig->getSourceQuestionPoolId());
         $poolInput->setRequired(true);
         $form->addItem($poolInput);
     }
     $questionOderingInput = new ilRadioGroupInputGUI($this->lng->txt('tst_input_dynamic_question_set_question_ordering'), 'question_ordering');
     $questionOderingInput->setValue($this->questionSetConfig->getOrderingTaxonomyId() ? self::QUESTION_ORDERING_TYPE_TAXONOMY : self::QUESTION_ORDERING_TYPE_UPDATE_DATE);
     $optionOrderByDate = new ilRadioOption($this->lng->txt('tst_input_dynamic_question_set_question_ordering_by_date'), self::QUESTION_ORDERING_TYPE_UPDATE_DATE, $this->lng->txt('tst_inp_dyn_quest_set_quest_ordering_by_date_desc'));
     $questionOderingInput->addOption($optionOrderByDate);
     $optionOrderByTax = new ilRadioOption($this->lng->txt('tst_input_dynamic_question_set_question_ordering_by_tax'), self::QUESTION_ORDERING_TYPE_TAXONOMY, $this->lng->txt('tst_inp_dyn_quest_set_quest_ordering_by_tax_desc'));
     $orderTaxInput = new ilSelectInputGUI($this->lng->txt('tst_input_dynamic_question_set_ordering_tax'), 'ordering_tax');
     $orderTaxInput->setInfo($this->lng->txt('tst_input_dynamic_question_set_ordering_tax_description'));
     $orderTaxInput->setValue($this->questionSetConfig->getOrderingTaxonomyId());
     $orderTaxInput->setRequired(true);
     $orderTaxInput->setOptions($this->buildTaxonomySelectInputOptionArray($this->questionSetConfig->getSourceQuestionPoolId()));
     $optionOrderByTax->addSubItem($orderTaxInput);
     $questionOderingInput->addOption($optionOrderByTax);
     $form->addItem($questionOderingInput);
     $taxFilterInput = new ilCheckboxInputGUI($this->lng->txt('tst_input_dynamic_question_set_taxonomie_filter_enabled'), 'tax_filter_enabled');
     $taxFilterInput->setValue(1);
     $taxFilterInput->setChecked($this->questionSetConfig->isTaxonomyFilterEnabled());
     $form->addItem($taxFilterInput);
     $answStatusFilterInput = new ilCheckboxInputGUI($this->lng->txt('tst_input_dyn_quest_set_answer_status_filter_enabled'), 'answer_status_filter_enabled');
     $answStatusFilterInput->setValue(1);
     $answStatusFilterInput->setChecked($this->questionSetConfig->isAnswerStatusFilterEnabled());
     $form->addItem($answStatusFilterInput);
     $previousQuestionsListInput = new ilCheckboxInputGUI($this->lng->txt('tst_input_dyn_quest_set_prev_quest_list_enabled'), 'prev_quest_list_enabled');
     $previousQuestionsListInput->setValue(1);
     $previousQuestionsListInput->setChecked($this->questionSetConfig->isPreviousQuestionsListEnabled());
     $form->addItem($previousQuestionsListInput);
     if ($this->testOBJ->participantDataExist()) {
         $questionOderingInput->setDisabled(true);
         $taxFilterInput->setDisabled(true);
         $answStatusFilterInput->setDisabled(true);
         $previousQuestionsListInput->setDisabled(true);
     } else {
         $form->addCommandButton(self::CMD_SAVE_FORM, $this->lng->txt('save'));
     }
     return $form;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:65,代码来源:class.ilObjTestDynamicQuestionSetConfigGUI.php

示例7: initToolbar

 protected function initToolbar()
 {
     if ($this->getActions() && $this->getActions()->getAction("edit")) {
         $toolbar = new ilToolbarGUI();
         $toolbar->addButton($this->getAddButtonTxt(), $this->ctrl->getLinkTarget($this->parent_obj, "add"));
         $this->setToolbar($toolbar);
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:8,代码来源:class.arIndexTableGUI.php

示例8: listTypes

 /**
  * Display all types in a table with actions to edit/delete
  */
 protected function listTypes()
 {
     $button = ilLinkButton::getInstance();
     $button->setCaption('orgu_type_add');
     $button->setUrl($this->ctrl->getLinkTarget($this, 'add'));
     $this->toolbar->addButtonInstance($button);
     $table = new ilOrgUnitTypeTableGUI($this, 'listTypes');
     $this->tpl->setContent($table->getHTML());
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:12,代码来源:class.ilOrgUnitTypeGUI.php

示例9: fillRow

 /**
  * @param array $a_set
  */
 public function fillRow($a_set)
 {
     $il_obj_entry = ilBibliographicEntry::getInstance($this->parent_obj->object->getFiletype(), $a_set['entry_id']);
     $this->tpl->setVariable('SINGLE_ENTRY', $il_obj_entry->getOverwiew());
     //Detail-Link
     $this->ctrl->setParameter($this->parent_obj, ilObjBibliographicGUI::P_ENTRY_ID, $a_set['entry_id']);
     $this->tpl->setVariable('DETAIL_LINK', $this->ctrl->getLinkTarget($this->parent_obj, 'showDetails'));
     // generate/render links to libraries
     $settings = ilBibliographicSetting::getAll();
     $arr_library_link = array();
     foreach ($settings as $set) {
         if ($set->getShowInList()) {
             $arr_library_link[] = $set->getButton($this->parent_obj->object, $il_obj_entry);
         }
     }
     if (count($arr_library_link)) {
         $this->tpl->setVariable('LIBRARY_LINK', implode('<br/>', $arr_library_link));
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:22,代码来源:class.ilBibliographicRecordListTableGUI.php

示例10: setSubTabs

 /**
  * Set Subtabs
  *
  */
 protected function setSubTabs()
 {
     if ($this->definition !== NULL) {
         $this->tabs->addSubTab('show_certificates', 'Show Certificates', $this->ctrl->getLinkTarget($this, 'showCertificates'));
     }
     $this->tabs->addSubTab('show_definition', 'Definition settings', $this->ctrl->getLinkTarget($this, 'showDefinition'));
     if ($this->definition !== NULL) {
         $this->tabs->addSubTab('show_placeholders', 'Placeholders', $this->ctrl->getLinkTarget($this, 'showPlaceholders'));
     }
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:14,代码来源:class.srCertificateDefinitionGUI.php

示例11: setTabs

 public function setTabs()
 {
     $this->tabs_gui->addSubTab("show_staff", sprintf($this->lng->txt("local_staff"), $this->parent_object->getTitle()), $this->ctrl->getLinkTarget($this, "showStaff"));
     if ($this->ilAccess->checkAccess("view_learning_progress_rec", "", $this->parent_object->getRefId())) {
         $this->tabs_gui->addSubTab("show_staff_rec", sprintf($this->lng->txt("rec_staff"), $this->parent_object->getTitle()), $this->ctrl->getLinkTarget($this, "showStaffRec"));
     }
     if ($this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
         $this->tabs_gui->addSubTab("show_other_roles", sprintf($this->lng->txt("local_other_roles"), $this->parent_object->getTitle()), $this->ctrl->getLinkTarget($this, "showOtherRoles"));
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:10,代码来源:class.ilOrgUnitStaffGUI.php

示例12: setSubTabs

 protected function setSubTabs()
 {
     global $ilSetting;
     include_once './Services/AuthShibboleth/classes/class.ilShibbolethRoleAssignmentRules.php';
     if ($ilSetting->get('shib_active') == 0 and ilShibbolethRoleAssignmentRules::getCountRules() == 0) {
         return false;
     }
     // DONE: show sub tabs if there is any role assignment rule
     $this->tabs_gui->addSubTabTarget('shib_settings', $this->ctrl->getLinkTarget($this, 'settings'));
     $this->tabs_gui->addSubTabTarget('shib_role_assignment', $this->ctrl->getLinkTarget($this, 'roleAssignment'));
     return true;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:12,代码来源:class.ilAuthShibbolethSettingsGUI.php

示例13: confirmDeleteSignature

 /**
  *
  */
 public function confirmDeleteSignature()
 {
     $signature = srCertificateSignature::find($_GET['signature_id']);
     $item_html = $signature->getFirstName() . " " . $signature->getLastName() . '<br>';
     $this->tabs->clearTargets();
     $this->tabs->setBackTarget($this->pl->txt('common_back'), $this->ctrl->getLinkTarget($this, 'view'));
     ilUtil::sendQuestion($this->pl->txt('signatures_confirm_delete'));
     $toolbar = new ilToolbarGUI();
     $this->ctrl->saveParameter($this, 'signature_id');
     $toolbar->addButton($this->pl->txt('confirm'), $this->ctrl->getLinkTarget($this, 'deleteSignature'));
     $toolbar->addButton($this->pl->txt('cancel'), $this->ctrl->getLinkTarget($this, 'showSignatures'));
     $this->tpl->setContent($item_html . '</br>' . $toolbar->getHTML());
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:16,代码来源:class.srCertificateTypeGUI.php

示例14: getSettingsTemplateMessageHTML

 protected function getSettingsTemplateMessageHTML()
 {
     if ($this->settingsTemplate) {
         global $tpl;
         $link = $this->ctrl->getLinkTarget($this, self::CMD_SHOW_RESET_TPL_CONFIRM);
         $link = "<a href=\"" . $link . "\">" . $this->lng->txt("test_using_template_link") . "</a>";
         $msgHTML = $tpl->getMessageHTML(sprintf($this->lng->txt("test_using_template"), $this->settingsTemplate->getTitle(), $link), "info");
         $msgHTML = "<div style=\"margin-top:10px\">{$msgHTML}</div>";
     } else {
         $msgHTML = '';
     }
     return $msgHTML;
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:13,代码来源:class.ilObjTestSettingsGeneralGUI.php

示例15: setTabs

 public function setTabs()
 {
     if ($this->access->checkAccess('read', '', $this->object->getRefId())) {
         $this->tabs->addTab('edit', $this->txt('pad'), $this->ctrl->getLinkTarget($this, 'editContent'));
     }
     $this->addInfoTab();
     if ($this->access->checkAccess('read', '', $this->object->getRefId())) {
         $this->tabs->addTab('timeslider', $this->txt('timeslider'), $this->ctrl->getLinkTarget($this, 'timeSlider'));
     }
     if ($this->access->checkAccess('write', '', $this->object->getRefId())) {
         $this->tabs->addTab('properties', $this->txt('properties'), $this->ctrl->getLinkTarget($this, 'editProperties'));
     }
     $this->addPermissionTab();
 }
开发者ID:studer-raimann,项目名称:Edupad,代码行数:14,代码来源:class.ilObjEdupadGUI.php


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