Actualización

This commit is contained in:
Xes
2025-04-10 12:49:05 +02:00
parent 4aff98e77b
commit 1cdd00920f
9151 changed files with 1800913 additions and 0 deletions

25
main/survey/ch_open.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Class ch_open.
*/
class ch_open extends survey_question
{
/**
* @param array $questionData
* @param string $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = '')
{
if (is_array($answers)) {
$content = implode('', $answers);
} else {
$content = $answers;
}
$name = 'question'.$questionData['question_id'];
$form->addTextarea($name, null);
$form->setDefaults([$name => $content]);
}
}