5 include_once
"Modules/Exercise/classes/class.ilExcCriteria.php";
27 parent::__construct();
29 $this->lng = $DIC->language();
59 $a_form->
addItem($peer_char_tgl);
62 $peer_char->
setInfo(
$lng->txt(
"exc_peer_review_min_chars_info"));
63 $peer_char->setRequired(
true);
64 $peer_char->setSize(3);
65 $peer_char_tgl->addSubItem($peer_char);
81 if ($a_form->
getInput(
"peer_char_tgl")) {
106 $input->setValue($a_value);
108 $this->form->addItem(
$input);
113 return trim($this->form->getInput(
"prccc_text_" . $this->getId()));
127 include_once
"Services/Utilities/classes/class.ilStr.php";
130 $mess = sprintf(
$lng->txt(
"exc_peer_review_chars_invalid"), $min);
131 $this->form->getItemByPostVar(
"prccc_text_" . $this->
getId())->setAlert($mess);
141 return (
bool) strlen($a_value);
146 return nl2br($a_value);
addToPeerReviewForm($a_value=null)
importCustomForm(ilPropertyFormGUI $a_form)
setDefinition(array $a_value=null)
exportCustomForm(ilPropertyFormGUI $a_form)
importFromPeerReviewForm()
initCustomForm(ilPropertyFormGUI $a_form)
This class represents a text area property in a property form.
__construct()
Constructor.