本文整理匯總了PHP中ilPropertyFormGUI::addTextAreaProperty方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilPropertyFormGUI::addTextAreaProperty方法的具體用法?PHP ilPropertyFormGUI::addTextAreaProperty怎麽用?PHP ilPropertyFormGUI::addTextAreaProperty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ilPropertyFormGUI
的用法示例。
在下文中一共展示了ilPropertyFormGUI::addTextAreaProperty方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: outputFormHtmlBlock
/**
* FORM HtmlBlock: Output form.
*
*/
public function outputFormHtmlBlock()
{
global $lng;
$lng->loadLanguageModule("block");
include "Services/Form/classes/class.ilPropertyFormGUI.php";
$form_gui = new ilPropertyFormGUI();
$values = $this->getValuesHtmlBlock();
// Property Title
$alert = $this->form_check["HtmlBlock"]["Title"]["error"] != "" ? $this->form_check["HtmlBlock"]["Title"]["error"] : "";
$form_gui->addTextProperty($lng->txt("block_html_block_title"), "block_title", $values["Title"], "", $alert, true, "200");
// Property Content
$alert = $this->form_check["HtmlBlock"]["Content"]["error"] != "" ? $this->form_check["HtmlBlock"]["Content"]["error"] : "";
$form_gui->addTextAreaProperty($lng->txt("block_html_block_content"), "block_content", $values["Content"], "", $alert, false, "40", "8", true);
// save and cancel commands
if (in_array($this->getFormEditMode(), array(IL_FORM_CREATE, IL_FORM_RE_CREATE))) {
$form_gui->addCommandButton("saveHtmlBlock", $lng->txt("save"));
$form_gui->addCommandButton("cancelSaveHtmlBlock", $lng->txt("cancel"));
} else {
$form_gui->addCommandButton("updateHtmlBlock", $lng->txt("save"));
$form_gui->addCommandButton("cancelUpdateHtmlBlock", $lng->txt("cancel"));
}
$form_gui->setTitle($lng->txt("block_html_block_head"));
$form_gui->setFormAction($this->ctrl->getFormAction($this));
// individual preparation of form
$this->prepareFormHtmlBlock($form_gui);
return $form_gui->getHTML();
}