ch_comment.php 496 B

1234567891011121314151617181920
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Class ch_comment.
  5. */
  6. class ch_comment extends survey_question
  7. {
  8. /**
  9. * @param FormValidator $form
  10. * @param array $questionData
  11. * @param string $answers
  12. */
  13. public function render(FormValidator $form, $questionData = [], $answers = '')
  14. {
  15. $name = 'question'.$questionData['question_id'];
  16. $form->addTextarea($name, null);
  17. $form->setDefaults([$name => $answers]);
  18. }
  19. }