本文整理汇总了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');
}
示例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();
}
示例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();
}
示例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);
}
示例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}();
}
}
示例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();
}
示例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();
}
示例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());
}
示例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;
}
示例10: showSkillSelectionCmd
private function showSkillSelectionCmd()
{
$skillSelectorGUI = $this->buildSkillSelectorGUI();
if (!$skillSelectorGUI->handleCommand()) {
$this->ctrl->saveParameter($this, 'question_id');
$this->tpl->setContent($this->ctrl->getHTML($skillSelectorGUI));
}
}
示例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();
}
示例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());
}
示例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();
}
示例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());
}
示例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