本文整理汇总了PHP中ilPropertyFormGUI::setKeepOpen方法的典型用法代码示例。如果您正苦于以下问题:PHP ilPropertyFormGUI::setKeepOpen方法的具体用法?PHP ilPropertyFormGUI::setKeepOpen怎么用?PHP ilPropertyFormGUI::setKeepOpen使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilPropertyFormGUI
的用法示例。
在下文中一共展示了ilPropertyFormGUI::setKeepOpen方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editCellAlignment
/**
* Edit cell styles
*/
function editCellAlignment()
{
global $ilCtrl, $tpl, $lng, $ilTabs;
$this->displayValidationError();
$this->setTabs();
$this->setCellPropertiesSubTabs();
$ilTabs->setSubTabActive("cont_alignment");
$ilTabs->setTabActive("cont_table_cell_properties");
// edit form
include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
$form = new ilPropertyFormGUI();
$form->setFormAction($ilCtrl->getFormAction($this));
$form->setTitle($this->lng->txt("cont_table_cell_properties"));
// alignment
$options = array("" => $lng->txt("default"), "Left" => $lng->txt("cont_left"), "Center" => $lng->txt("cont_center"), "Right" => $lng->txt("cont_right"));
$si = new ilSelectInputGUI($lng->txt("cont_alignment"), "alignment");
$si->setOptions($options);
$si->setInfo($lng->txt(""));
$form->addItem($si);
$form->setKeepOpen(true);
$form->addCommandButton("setAlignment", $lng->txt("cont_set_alignment"));
$html = $form->getHTML();
$html .= "<br />" . $this->renderTable("table_edit", "alignment") . "</form>";
$tpl->setContent($html);
}