本文整理汇总了PHP中assQuestion::getPreventRteUsage方法的典型用法代码示例。如果您正苦于以下问题:PHP assQuestion::getPreventRteUsage方法的具体用法?PHP assQuestion::getPreventRteUsage怎么用?PHP assQuestion::getPreventRteUsage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类assQuestion
的用法示例。
在下文中一共展示了assQuestion::getPreventRteUsage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buildFeedbackContentFormProperty
/**
* builds and returns a form property gui object with the given label and postvar
* that is addable to property forms
* depending on the given flag "asNonEditable" it returns a ...
* - non editable gui
* - textarea input gui
*
* @final
* @access protected
* @param string $label
* @param string $postVar
* @param boolean $asNonEditable
* @return ilTextAreaInputGUI|ilNonEditableValueGUI $formProperty
*/
protected final function buildFeedbackContentFormProperty($label, $postVar, $asNonEditable)
{
if ($asNonEditable) {
require_once 'Services/Form/classes/class.ilNonEditableValueGUI.php';
$property = new ilNonEditableValueGUI($label, $postVar, true);
} else {
require_once 'Services/Form/classes/class.ilTextAreaInputGUI.php';
require_once 'Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php';
$property = new ilTextAreaInputGUI($label, $postVar);
$property->setRequired(false);
$property->setRows(10);
$property->setCols(80);
if (!$this->questionOBJ->getPreventRteUsage()) {
$property->setUseRte(true);
$property->setRteTags(ilObjAdvancedEditing::_getUsedHTMLTags("assessment"));
$property->addPlugin("latex");
$property->addButton("latex");
$property->addButton("pastelatex");
}
$property->setRTESupport($this->questionOBJ->getId(), "qpl", "assessment");
}
return $property;
}