Actualización
This commit is contained in:
19
main/survey/ch_comment.php
Normal file
19
main/survey/ch_comment.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
|
||||
/**
|
||||
* Class ch_comment.
|
||||
*/
|
||||
class ch_comment extends survey_question
|
||||
{
|
||||
/**
|
||||
* @param array $questionData
|
||||
* @param string $answers
|
||||
*/
|
||||
public function render(FormValidator $form, $questionData = [], $answers = '')
|
||||
{
|
||||
$name = 'question'.$questionData['question_id'];
|
||||
$form->addTextarea($name, null);
|
||||
$form->setDefaults([$name => $answers]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user