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


PHP ilCtrl::getFormAction方法代码示例

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


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

示例1: build

 public function build(ilTestRandomQuestionSetSourcePoolDefinition $sourcePool, $availableTaxonomyIds)
 {
     $this->setFormAction($this->ctrl->getFormAction($this->questionSetConfigGUI));
     $this->setTitle($this->lng->txt('tst_rnd_quest_set_cfg_pool_form'));
     $this->setId('tstRndQuestSetCfgPoolForm');
     $this->addCommandButton($this->getSaveCommand(), $this->lng->txt('save_and_back'));
     if (null !== $this->getSaveAndNewCommand()) {
         $this->addCommandButton($this->getSaveAndNewCommand(), $this->lng->txt('tst_save_and_create_new_rule'));
     }
     $this->addCommandButton(ilTestRandomQuestionSetConfigGUI::CMD_SHOW_SRC_POOL_DEF_LIST, $this->lng->txt('cancel'));
     $hiddenDefId = new ilHiddenInputGUI('src_pool_def_id');
     $hiddenDefId->setValue($sourcePool->getId());
     $this->addItem($hiddenDefId);
     $hiddenPoolId = new ilHiddenInputGUI('quest_pool_id');
     $hiddenPoolId->setValue($sourcePool->getPoolId());
     $this->addItem($hiddenPoolId);
     $nonEditablePoolLabel = new ilNonEditableValueGUI($this->lng->txt('tst_inp_source_pool_label'), 'quest_pool_label');
     $nonEditablePoolLabel->setValue($sourcePool->getPoolInfoLabel($this->lng));
     $this->addItem($nonEditablePoolLabel);
     if (count($availableTaxonomyIds)) {
         $taxRadio = new ilRadioGroupInputGUI($this->lng->txt('tst_inp_source_pool_filter_tax'), 'filter_tax');
         $taxRadio->setRequired(true);
         $taxRadio->addOption(new ilRadioOption($this->lng->txt('tst_inp_source_pool_no_tax_filter'), 0));
         $taxRadio->setValue(0);
         require_once 'Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php';
         foreach ($availableTaxonomyIds as $taxId) {
             $taxonomy = new ilObjTaxonomy($taxId);
             $label = sprintf($this->lng->txt('tst_inp_source_pool_filter_tax_x'), $taxonomy->getTitle());
             $taxRadioOption = new ilRadioOption($label, $taxId);
             $taxRadio->addOption($taxRadioOption);
             $taxSelect = new ilTaxSelectInputGUI($taxId, "filter_tax_{$taxId}", false);
             $taxSelect->setRequired(true);
             $taxRadioOption->addSubItem($taxSelect);
             if ($taxId == $sourcePool->getOriginalFilterTaxId()) {
                 $taxRadio->setValue($sourcePool->getOriginalFilterTaxId());
                 $taxSelect->setValue($sourcePool->getOriginalFilterTaxNodeId());
             }
         }
         $this->addItem($taxRadio);
     } else {
         $hiddenNoTax = new ilHiddenInputGUI('filter_tax');
         $hiddenNoTax->setValue(0);
         $this->addItem($hiddenNoTax);
         $nonEditableNoTax = new ilNonEditableValueGUI($this->lng->txt('tst_inp_source_pool_filter_tax'), 'no_tax_label');
         $nonEditableNoTax->setValue($this->lng->txt('tst_inp_no_available_tax_hint'));
         $this->addItem($nonEditableNoTax);
     }
     if ($this->questionSetConfig->isQuestionAmountConfigurationModePerPool()) {
         $questionAmountPerSourcePool = new ilNumberInputGUI($this->lng->txt('tst_inp_quest_amount_per_source_pool'), 'question_amount_per_pool');
         $questionAmountPerSourcePool->setRequired(true);
         $questionAmountPerSourcePool->allowDecimals(false);
         $questionAmountPerSourcePool->setMinValue(0);
         $questionAmountPerSourcePool->setMinvalueShouldBeGreater(true);
         $questionAmountPerSourcePool->setSize(4);
         if ($sourcePool->getQuestionAmount()) {
             $questionAmountPerSourcePool->setValue($sourcePool->getQuestionAmount());
         }
         $this->addItem($questionAmountPerSourcePool);
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:60,代码来源:class.ilTestRandomQuestionSetPoolDefinitionFormGUI.php

示例2: __construct

 /**
  * @param        $a_parent_obj
  * @param string $a_parent_cmd
  * @param string $template_context
  * @param int    $ref_id
  * @param bool   $is_moderator
  * @param string $overview_setting
  */
 public function __construct($a_parent_obj, $a_parent_cmd = '', $template_context = '', $ref_id = 0, $topicData = array(), $is_moderator = false, $overview_setting = '')
 {
     /**
      * @var $ilCtrl ilCtrl
      * @var $lng    ilLanguage
      * @var $tpl    ilTemplate
      */
     global $ilCtrl, $lng, $tpl;
     $this->lng = $lng;
     $this->ctrl = $ilCtrl;
     $this->setIsModerator($is_moderator);
     $this->setOverviewSetting($overview_setting);
     $this->setRefId($ref_id);
     $this->setTopicData($topicData);
     // Call this immediately in constructor
     $this->setId('il_frm_thread_table_' . $this->getRefId());
     $this->setPrefix('frm_threads');
     // Let the database do the work
     $this->setDefaultOrderDirection('DESC');
     $this->setDefaultOrderField('is_sticky');
     $this->setExternalSorting(true);
     $this->setExternalSegmentation(true);
     parent::__construct($a_parent_obj, $a_parent_cmd, $template_context);
     // Add global css for table styles
     $tpl->addCss('./Modules/Forum/css/forum_table.css');
     // Columns
     $this->addColumn('', 'check', '1px', true);
     $this->addColumn($this->lng->txt('forums_thread'), 'th_title');
     $this->addColumn($this->lng->txt('forums_created_by'), 'author');
     $this->addColumn($this->lng->txt('forums_articles'), 'num_posts');
     $this->addColumn($this->lng->txt('visits'), 'num_visit');
     $this->addColumn($this->lng->txt('forums_last_post'), 'lp_date');
     // Disable sorting
     $this->disable('sort');
     $this->setSelectAllCheckbox('thread_ids');
     // Default Form Action
     $this->setFormAction($this->ctrl->getFormAction($this->getParentObject(), 'showThreads'));
     // Row template
     $this->setRowTemplate('tpl.forums_threads_table.html', 'Modules/Forum');
     // Multi commands
     $this->addMultiCommand('', $this->lng->txt('please_choose'));
     if ($this->ilias->getSetting('forum_notification') == 1) {
         $this->addMultiCommand('enable_notifications', $this->lng->txt('forums_enable_notification'));
         $this->addMultiCommand('disable_notifications', $this->lng->txt('forums_disable_notification'));
     }
     if ($this->getIsModerator()) {
         $this->addMultiCommand('makesticky', $this->lng->txt('make_topics_sticky'));
         $this->addMultiCommand('unmakesticky', $this->lng->txt('make_topics_non_sticky'));
         $this->addMultiCommand('editThread', $this->lng->txt('frm_edit_title'));
         $this->addMultiCommand('close', $this->lng->txt('close_topics'));
         $this->addMultiCommand('reopen', $this->lng->txt('reopen_topics'));
         $this->addMultiCommand('move', $this->lng->txt('move'));
     }
     $this->addMultiCommand('html', $this->lng->txt('export_html'));
     if ($this->getIsModerator()) {
         $this->addMultiCommand('confirmDeleteThreads', $this->lng->txt('delete'));
     }
     $this->setShowRowsSelector(true);
     $this->setRowSelectorLabel($this->lng->txt('number_of_threads'));
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:68,代码来源:class.ilForumTopicTableGUI.php

示例3: build

 public function build()
 {
     $this->setFormAction($this->ctrl->getFormAction($this->questionSetConfigGUI));
     $this->setTitle($this->lng->txt('tst_rnd_quest_set_cfg_general_form'));
     $this->setId('tstRndQuestSetCfgGeneralForm');
     $this->addCommandButton(ilTestRandomQuestionSetConfigGUI::CMD_SAVE_GENERAL_CONFIG_FORM, $this->lng->txt('save'));
     // Require Pools with Homogeneous Scored Questions
     $requirePoolsQuestionsHomoScored = new ilCheckboxInputGUI($this->lng->txt('tst_inp_all_quest_points_equal_per_pool'), 'quest_points_equal_per_pool');
     $requirePoolsQuestionsHomoScored->setInfo($this->lng->txt('tst_inp_all_quest_points_equal_per_pool_desc'));
     $requirePoolsQuestionsHomoScored->setChecked($this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired());
     $this->addItem($requirePoolsQuestionsHomoScored);
     // question amount config mode (per test / per pool)
     $questionAmountConfigMode = new ilRadioGroupInputGUI($this->lng->txt('tst_inp_quest_amount_cfg_mode'), 'quest_amount_cfg_mode');
     $questionAmountConfigMode->setValue($this->fetchValidQuestionAmountConfigModeWithFallbackModePerTest($this->questionSetConfig));
     $questionAmountConfigModePerTest = new ilRadioOption($this->lng->txt('tst_inp_quest_amount_cfg_mode_test'), ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_TEST);
     $questionAmountConfigMode->addOption($questionAmountConfigModePerTest);
     $questionAmountConfigModePerPool = new ilRadioOption($this->lng->txt('tst_inp_quest_amount_cfg_mode_pool'), ilTestRandomQuestionSetConfig::QUESTION_AMOUNT_CONFIG_MODE_PER_POOL);
     $questionAmountConfigMode->addOption($questionAmountConfigModePerPool);
     $questionAmountConfigMode->setRequired(true);
     $this->addItem($questionAmountConfigMode);
     // question amount per test
     $questionAmountPerTest = new ilNumberInputGUI($this->lng->txt('tst_inp_quest_amount_per_test'), 'quest_amount_per_test');
     $questionAmountPerTest->setRequired(true);
     $questionAmountPerTest->setMinValue(0);
     $questionAmountPerTest->allowDecimals(false);
     $questionAmountPerTest->setMinvalueShouldBeGreater(true);
     $questionAmountPerTest->setSize(4);
     $questionAmountPerTest->setValue($this->questionSetConfig->getQuestionAmountPerTest());
     $questionAmountConfigModePerTest->addSubItem($questionAmountPerTest);
     if ($this->testOBJ->participantDataExist()) {
         $requirePoolsQuestionsHomoScored->setDisabled(true);
         $questionAmountConfigMode->setDisabled(true);
         $questionAmountPerTest->setDisabled(true);
     }
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:35,代码来源:class.ilTestRandomQuestionSetGeneralConfigFormGUI.php

示例4: __construct

 /**
  * @param $a_parent_obj
  * @param $a_parent_cmd
  */
 public function __construct($a_parent_obj, $a_parent_cmd)
 {
     /**
      * @var $ilCtrl ilCtrl
      */
     global $ilCtrl;
     $this->ctrl = $ilCtrl;
     // Call this immediately in constructor
     $this->setId('mail_attachments');
     $this->setDefaultOrderDirection('ASC');
     $this->setDefaultOrderField('filename');
     parent::__construct($a_parent_obj, $a_parent_cmd);
     $this->setTitle($this->lng->txt('attachment'));
     $this->setNoEntriesText($this->lng->txt('marked_entries'));
     $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, 'applyFilter'));
     $this->setSelectAllCheckbox('filename[]');
     $this->setRowTemplate('tpl.mail_attachment_row.html', 'Services/Mail');
     $this->addMultiCommand('saveAttachments', $this->lng->txt('adopt'));
     $this->addMultiCommand('deleteAttachments', $this->lng->txt('delete'));
     $this->addCommandButton('cancelSaveAttachments', $this->lng->txt('cancel'));
     $this->addColumn($this->lng->txt(''), '', '1px', true);
     $this->addColumn($this->lng->txt('mail_file_name'), 'filename');
     $this->addColumn($this->lng->txt('mail_file_size'), 'filesize');
     $this->addColumn($this->lng->txt('create_date'), 'filecreatedate');
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:29,代码来源:class.ilMailAttachmentTableGUI.php

示例5: initForm

 /**
  * Add all fields to the form
  */
 protected function initForm()
 {
     $this->setFormAction($this->ctrl->getFormAction($this->parent_gui));
     $this->setTitle($this->lng->txt('orgu_settings'));
     $item = new ilTextInputGUI($this->lng->txt('title'), 'title');
     $item->setRequired(true);
     $item->setValue($this->obj_orgu->getTitle());
     $this->addItem($item);
     $item = new ilTextAreaInputGUI($this->lng->txt('description'), 'description');
     $item->setValue($this->obj_orgu->getDescription());
     $this->addItem($item);
     $item = new ilFormSectionHeaderGUI();
     $item->setTitle($this->lng->txt('orgu_type'));
     $this->addItem($item);
     $types = ilOrgUnitType::getAllTypes();
     $options = array(0 => '');
     /** @var ilOrgUnitType $type */
     foreach ($types as $type) {
         $options[$type->getId()] = $type->getTitle();
     }
     asort($options);
     $item = new ilSelectInputGUI($this->lng->txt('orgu_type'), 'orgu_type');
     $item->setOptions($options);
     $item->setValue($this->obj_orgu->getOrgUnitTypeId());
     $this->addItem($item);
     $item = new ilFormSectionHeaderGUI();
     $item->setTitle($this->lng->txt('ext_id'));
     $this->addItem($item);
     $item = new ilTextInputGUI($this->lng->txt('ext_id'), 'ext_id');
     $item->setValue($this->obj_orgu->getImportId());
     $this->addItem($item);
     $this->addCommandButton('updateSettings', $this->lng->txt('save'));
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:36,代码来源:class.ilObjOrgUnitSettingsFormGUI.php

示例6: __construct

 /**
  * Options array can contain the following key/value pairs
  * - show_filter : True if filtering data is possible
  * - columns : Array of columns to display
  * - definition_id: ID of a definition  -> shows certificates only from this definition
  * - user_id: ID of a user -> shows certificates only from the given user
  * - newest_version_only : True to display the newest versions of certificates only
  * - actions : Array of possible actions, currently possible: atm array('download')
  * - actions_multi: Array of possible multi-actions, atm: array('download_zip')
  *
  * @param $a_parent_obj
  * @param string $a_parent_cmd
  * @param array $options
  */
 public function __construct($a_parent_obj, $a_parent_cmd = "", array $options = array())
 {
     global $ilCtrl, $ilUser;
     $_options = array('show_filter' => true, 'columns' => self::$default_columns, 'definition_id' => 0, 'user_id' => 0, 'newest_version_only' => true, 'actions' => array('download'), 'actions_multi' => array('download_zip'), 'build_data' => true);
     $this->options = array_merge($_options, $options);
     $this->setPrefix('cert_');
     $this->setId($this->getOption('user_id') . '_' . $this->getOption('definition_id'));
     $this->columns = $this->getOption('columns');
     $this->pl = ilCertificatePlugin::getInstance();
     $this->ctrl = $ilCtrl;
     $this->user = $ilUser;
     $this->setShowRowsSelector(true);
     parent::__construct($a_parent_obj, $a_parent_cmd, "");
     $this->setRowTemplate('tpl.cert_row.html', $this->pl->getDirectory());
     $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
     $this->addColumns();
     $this->setExportFormats(array(self::EXPORT_EXCEL));
     if ($this->getOption('show_filter')) {
         $this->initFilter();
     }
     if ($this->getOption('build_data')) {
         $this->buildData();
     }
     if ($this->has_any_certs && count($this->getOption('actions_multi'))) {
         $this->setSelectAllCheckbox("cert_id[]");
         $this->addMultiCommand("downloadCertificates", $this->pl->txt('download_zip'));
     }
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:42,代码来源:class.srCertificateTableGUI.php

示例7: __construct

 /**
  * @param        $parent
  * @param string $cmd
  */
 public function __construct($parent, $cmd, $template_context = '', ilMarkSchemaAware $object = null)
 {
     /**
      * @var $ilCtrl ilCtrl
      */
     global $ilCtrl;
     $this->object = $object;
     $this->ctrl = $ilCtrl;
     $this->is_editable = $this->object->canEditMarks();
     $this->setId('mark_schema_gui_' . $this->object->getMarkSchemaForeignId());
     parent::__construct($parent, $cmd);
     $this->setFormAction($this->ctrl->getFormAction($this->getParentObject(), $cmd));
     $this->setRowTemplate('tpl.il_as_tst_mark_schema_row.html', 'Modules/Test');
     $this->setNoEntriesText($this->lng->txt('tst_no_marks_defined'));
     if ($this->object->canEditMarks()) {
         $this->addCommandButton('addMarkStep', $this->lng->txt('tst_mark_create_new_mark_step'));
         $this->addCommandButton('saveMarks', $this->lng->txt('save'));
         $this->addMultiCommand('deleteMarkSteps', $this->lng->txt('delete'));
         $this->setSelectAllCheckbox('marks[]');
     } else {
         $this->disable('select_all');
     }
     $this->setLimit(PHP_INT_MAX);
     $this->initColumns();
     $this->initData();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:30,代码来源:class.ilMarkSchemaTableGUI.php

示例8: initForm

 /**
  * Init settings property form
  *
  * @access private
  */
 private function initForm()
 {
     $this->setFormAction($this->ctrl->getFormAction($this->parent_gui));
     $name = new ilTextInputGUI($this->lng->txt("bibl_library_name"), 'name');
     $name->setRequired(true);
     $name->setValue('');
     $this->addItem($name);
     $url = new ilTextInputGUI($this->lng->txt("bibl_library_url"), 'url');
     $url->setRequired(true);
     $url->setValue('');
     $this->addItem($url);
     $img = new ilTextInputGUI($this->lng->txt("bibl_library_img"), 'img');
     $img->setValue('');
     $this->addItem($img);
     $show_in_list = new ilCheckboxInputGUI($this->lng->txt("bibl_library_show_in_list"), 'show_in_list');
     $show_in_list->setValue(1);
     $this->addItem($show_in_list);
     switch ($this->action) {
         case 'create':
             $this->setTitle($this->lng->txt("bibl_settings_new"));
             $this->addCommandButton('create', $this->lng->txt('save'));
             break;
         case 'update':
             $this->addCommandButton('update', $this->lng->txt('save'));
             $this->fillForm();
             $this->setTitle($this->lng->txt("bibl_settings_edit"));
             break;
     }
     $this->addCommandButton('cancel', $this->lng->txt("cancel"));
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:35,代码来源:class.ilObjBibliographicAdminLibrariesFormGUI.php

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

示例10: build

 public function build()
 {
     $this->setFormAction($this->ctrl->getFormAction($this->questionSetConfigGUI));
     if ($this->questionSetConfig->doesSelectableQuestionPoolsExist()) {
         $this->populateNewQuestionSelectionRuleInputs();
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:7,代码来源:class.ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI.php

示例11: build

 public function build()
 {
     $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:arlendotcn,项目名称:ilias,代码行数:9,代码来源:class.ilTestSkillEvaluationToolbarGUI.php

示例12: __construct

 /**
  * @param ilCertificateConfigGUI $parent_gui
  */
 public function __construct(ilCertificateConfigGUI $parent_gui)
 {
     global $ilCtrl, $lng;
     $this->parent_gui = $parent_gui;
     $this->ctrl = $ilCtrl;
     $this->lng = $lng;
     $this->pl = ilCertificatePlugin::getInstance();
     $this->setFormAction($this->ctrl->getFormAction($this->parent_gui));
     $this->initForm();
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:13,代码来源:class.ilCertificateConfigFormGUI.php

示例13: build

 public function build()
 {
     $availablePools = $this->testOBJ->getAvailableQuestionpools(true, $this->questionSetConfig->arePoolsWithHomogeneousScoredQuestionsRequired(), false, true, true);
     require_once 'Services/Form/classes/class.ilSelectInputGUI.php';
     $poolSelection = new ilSelectInputGUI(null, 'quest_pool_id');
     $poolSelection->setOptions($this->buildSourcePoolSelectOptionsArray($availablePools));
     $this->addInputItem($poolSelection, true);
     $this->setFormAction($this->ctrl->getFormAction($this->questionSetConfigGUI));
     $this->addFormButton($this->lng->txt('tst_rnd_quest_set_tb_add_pool_btn'), ilTestRandomQuestionSetConfigGUI::CMD_SHOW_CREATE_SRC_POOL_DEF_FORM);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:10,代码来源:class.ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI.php

示例14: __construct

 /**
  * @param $parent_gui
  */
 public function __construct($parent_gui)
 {
     global $ilCtrl, $lng;
     $this->parent_gui = $parent_gui;
     $this->ctrl = $ilCtrl;
     $this->lng = $lng;
     $this->ctrl->saveParameter($parent_gui, 'clip_ext_id');
     $this->setFormAction($this->ctrl->getFormAction($parent_gui));
     $this->initForm();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:13,代码来源:class.arConfigFormGUI.php

示例15: initForm

 /**
  * Add all fields to the form
  */
 protected function initForm()
 {
     $this->setFormAction($this->ctrl->getFormAction($this->parent_gui));
     $this->setTitle($this->lng->txt('orgu_type_custom_icon'));
     $item = new ilImageFileInputGUI($this->lng->txt('icon') . ' 32x32 px', 'icon');
     $item->setSuffixes(array('svg'));
     $item->setInfo($this->lng->txt('orgu_type_custom_icon_info'));
     if (is_file($this->type->getIconPath(true))) {
         $item->setImage($this->type->getIconPath(true));
     }
     $this->addItem($item);
     $this->addCommandButton('updateCustomIcons', $this->lng->txt('save'));
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:16,代码来源:class.ilOrgUnitTypeCustomIconsFormGUI.php


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