本文整理匯總了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;
}