/** * initialises a given form object's GENERIC form properties * relating to all question types * * @final * @access public * @param ilPropertyFormGUI $form */ public final function initGenericFormProperties(ilPropertyFormGUI $form) { if ($this->questionOBJ->isAdditionalContentEditingModePageObject()) { $pageObjectType = $this->getGenericFeedbackPageObjectType(); $valueFeedbackSolutionComplete = $this->getPageObjectNonEditableValueHTML($pageObjectType, $this->getGenericFeedbackPageObjectId($this->questionOBJ->getId(), true)); $valueFeedbackSolutionIncomplete = $this->getPageObjectNonEditableValueHTML($pageObjectType, $this->getGenericFeedbackPageObjectId($this->questionOBJ->getId(), false)); } else { $valueFeedbackSolutionComplete = $this->questionOBJ->prepareTextareaOutput($this->getGenericFeedbackContent($this->questionOBJ->getId(), true)); $valueFeedbackSolutionIncomplete = $this->questionOBJ->prepareTextareaOutput($this->getGenericFeedbackContent($this->questionOBJ->getId(), false)); } $form->getItemByPostVar('feedback_complete')->setValue($valueFeedbackSolutionComplete); $form->getItemByPostVar('feedback_incomplete')->setValue($valueFeedbackSolutionIncomplete); }