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


PHP ilCtrl::saveParameter方法代码示例

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


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

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

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

示例3: __construct

 /**
  * @param arGUI        $parent_gui
  * @param ActiveRecord $ar
  */
 public function __construct(arGUI $parent_gui, ActiveRecord $ar)
 {
     global $ilCtrl;
     $this->ar = $ar;
     $this->parent_gui = $parent_gui;
     $this->ctrl = $ilCtrl;
     $this->ctrl->saveParameter($parent_gui, 'ar_id');
     $this->setFormName(get_class($ar));
     $this->init();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:14,代码来源:class.arEditGUI.php

示例4: __construct

 /**
  * @param $parent_gui
  */
 public function __construct($parent_gui)
 {
     global $ilCtrl, $tpl;
     /**
      * @var $ilCtrl ilCtrl
      */
     $this->ctrl = $ilCtrl;
     $this->tpl = $tpl;
     $this->pl = ilUserDefaultsPlugin::getInstance();
     $this->ctrl->saveParameter($this, self::IDENTIFIER);
     $this->ctrl->setParameter($this, ilUserSettingsGUI::IDENTIFIER, $_GET[ilUserSettingsGUI::IDENTIFIER]);
     $this->ctrl->saveParameter($parent_gui, ilUserSettingsGUI::IDENTIFIER);
 }
开发者ID:JKN-INC,项目名称:UserDefaults,代码行数:16,代码来源:class.ilUDFCheckGUI.php

示例5: executeCommand

 public function executeCommand()
 {
     $this->ctrl->saveParameter($this, 'nextCommand');
     $nextCommand = explode('::', $_GET['nextCommand']);
     $this->setNextCommandClass($nextCommand[0]);
     $this->setNextCommandCmd($nextCommand[1]);
     $this->ctrl->saveParameter($this->parentGUI, 'lock');
     switch ($this->ctrl->getNextClass()) {
         default:
             $cmd = $this->ctrl->getCmd() . 'Cmd';
             $this->{$cmd}();
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:13,代码来源:class.ilTestPasswordProtectionGUI.php

示例6: __construct

 /**
  * @param arGUI        $parent_gui
  * @param ActiveRecord $ar
  */
 public function __construct(arGUI $parent_gui, ActiveRecord $ar)
 {
     global $ilCtrl, $tpl;
     /**
      * @var ilCtrl     $ilCtrl
      * @var ilTemplate $tpl
      */
     $this->ctrl = $ilCtrl;
     $this->tpl = $tpl;
     $this->ar = $ar;
     $this->parent_gui = $parent_gui;
     $this->ctrl->saveParameter($parent_gui, 'ar_id');
     $this->init();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:18,代码来源:class.arDisplayGUI.php

示例7: __construct

 /**
  * Constructor
  *
  */
 public function __construct($parent_gui, $bibl_setting)
 {
     global $ilCtrl, $lng;
     $this->ctrl = $ilCtrl;
     $this->lng = $lng;
     $this->parent_gui = $parent_gui;
     $this->bibl_setting = $bibl_setting;
     if ($bibl_setting->getId() > 0) {
         $this->action = 'update';
     } else {
         $this->action = 'create';
     }
     $this->ctrl->saveParameter($parent_gui, 'lib_id');
     $this->initForm();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:19,代码来源:class.ilObjBibliographicAdminLibrariesFormGUI.php

示例8: __construct

 public function __construct()
 {
     /**
      * @var $tpl	ilTemplate
      * @var $ilCtrl ilCtrl
      * @var $lng	ilLanguage
      * @var $ilUser ilObjUser
      */
     global $tpl, $ilCtrl, $lng, $ilUser;
     $this->tpl = $tpl;
     $this->ctrl = $ilCtrl;
     $this->lng = $lng;
     $this->ctrl->saveParameter($this, 'mobj_id');
     $this->umail = new ilFormatMail($ilUser->getId());
     $this->mfile = new ilFileDataMail($ilUser->getId());
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:16,代码来源:class.ilMailAttachmentGUI.php

示例9: executeCommand

 /**
  * @return bool
  */
 public function executeCommand()
 {
     if ($_GET['mode']) {
         $this->ctrl->saveParameter($this, 'mode');
         $this->ctrl->setParameterByClass("ildatacollectionrecordlistgui", "mode", $_GET['mode']);
     }
     $this->ctrl->saveParameter($this, 'redirect');
     if ($this->record_id) {
         $this->record = ilDataCollectionCache::getRecordCache($this->record_id);
         if (!$this->record->hasPermissionToEdit($this->parent_obj->ref_id) or !$this->record->hasPermissionToView($this->parent_obj->ref_id)) {
             $this->accessDenied();
         }
         $this->table = $this->record->getTable();
         $this->table_id = $this->table->getId();
     } else {
         $this->table = ilDataCollectionCache::getTableCache($this->table_id);
         if (!ilObjDataCollectionAccess::hasAddRecordAccess($_GET['ref_id'])) {
             $this->accessDenied();
         }
     }
     $cmd = $this->ctrl->getCmd();
     switch ($cmd) {
         default:
             $this->{$cmd}();
             break;
     }
     return true;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:31,代码来源:class.ilDataCollectionRecordEditGUI.php

示例10: showSkillSelectionCmd

 private function showSkillSelectionCmd()
 {
     $skillSelectorGUI = $this->buildSkillSelectorGUI();
     if (!$skillSelectorGUI->handleCommand()) {
         $this->ctrl->saveParameter($this, 'question_id');
         $this->tpl->setContent($this->ctrl->getHTML($skillSelectorGUI));
     }
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:8,代码来源:class.ilTestSkillQuestionAssignmentsGUI.php

示例11: __construct

 /**
  * @param ilObjOrgUnitGUI $parent_gui
  */
 public function __construct(ilObjOrgUnitGUI $parent_gui)
 {
     global $tpl, $ilCtrl, $ilAccess, $ilToolbar, $ilLocator, $tree, $lng, $ilLog, $ilias, $ilTabs;
     $this->tpl = $tpl;
     $this->ctrl = $ilCtrl;
     $this->access = $ilAccess;
     $this->locator = $ilLocator;
     $this->toolbar = $ilToolbar;
     $this->tabs = $ilTabs;
     $this->log = $ilLog;
     $this->lng = $lng;
     $this->ilias = $ilias;
     $this->parent_gui = $parent_gui;
     $this->lng->loadLanguageModule('orgu');
     $this->ctrl->saveParameter($this, 'type_id');
     $this->lng->loadLanguageModule('meta');
     $this->checkAccess();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:21,代码来源:class.ilOrgUnitTypeGUI.php

示例12: __construct

 public function __construct()
 {
     global $tpl, $ilCtrl, $ilToolbar, $ilTabs, $lng, $ilAccess, $ilDB, $ilLocator;
     $this->ctrl = $ilCtrl;
     $this->tpl = $tpl;
     $this->toolbar = $ilToolbar;
     $this->tabs = $ilTabs;
     $this->ref_id = (int) $_GET['ref_id'];
     $this->crs = ilObjectFactory::getInstanceByRefId($this->ref_id);
     $this->definition = srCertificateDefinition::where(array('ref_id' => $this->ref_id))->first();
     $this->pl = ilCertificatePlugin::getInstance();
     $this->lng = $lng;
     $this->access = $ilAccess;
     $this->db = $ilDB;
     $this->ctrl->saveParameter($this, 'ref_id');
     $this->tpl->addJavaScript($this->pl->getStyleSheetLocation('uihk_certificate.js'));
     $this->lng->loadLanguageModule('common');
     $ilLocator->addRepositoryItems();
     $this->tpl->setVariable("LOCATOR", $ilLocator->getHTML());
 }
开发者ID:studer-raimann,项目名称:Certificate,代码行数:20,代码来源:class.srCertificateDefinitionGUI.php

示例13: executeCommand

 /**
  *
  */
 public function executeCommand()
 {
     $this->ctrl->saveParameter($this, 'category_id');
     $cmd = $this->ctrl->getCmd($this->getDefaultCommand());
     $nextClass = $this->ctrl->getNextClass($this);
     switch ($nextClass) {
         default:
             $this->checkPermissions($cmd);
             $this->{$cmd}();
             break;
     }
     $this->handleSubtabs();
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:16,代码来源:class.ilUnitConfigurationGUI.php

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

示例15: buildForm

 /**
  * @return ilPropertyFormGUI
  */
 protected function buildForm()
 {
     require_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $form->setTitle("Mitgliedern Einschreiben");
     $form->setDescription("Bitte geben Sie eine Liste von Emails aus.");
     require_once "Services/Form/classes/class.ilTextAreaInputGUI.php";
     $textarea = new ilTextAreaInputGUI('E-mail Addresse', 'emails');
     $textarea->setRequired(true);
     $textarea->setRows(20);
     $form->addItem($textarea);
     $this->ctrl->saveParameter($this, 'ref_id');
     $form->addCommandButton('save', 'Speichern');
     $form->setFormAction($this->ctrl->getFormAction($this));
     return $form;
 }
开发者ID:any333,项目名称:courseEmailsSubscriptionPlugin,代码行数:19,代码来源:class.ilCourseEmailSubscriptionGUI.php


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