You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							627 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							627 B
						
					
					
				<?php
 | 
						|
/* For licensing terms, see /license.txt */
 | 
						|
 | 
						|
/**
 | 
						|
 * Class ch_comment
 | 
						|
 */
 | 
						|
class ch_comment extends survey_question
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @param FormValidator $form
 | 
						|
     * @param array $questionData
 | 
						|
     * @param string $answers
 | 
						|
     */
 | 
						|
    public function render(FormValidator $form, $questionData = array(), $answers = '')
 | 
						|
    {
 | 
						|
        if (is_array($answers)) {
 | 
						|
            $content = implode('', $answers);
 | 
						|
        } else {
 | 
						|
            $content = $answers;
 | 
						|
        }
 | 
						|
 | 
						|
        $name = 'question'.$questionData['question_id'];
 | 
						|
        $form->addTextarea($name, null);
 | 
						|
        $form->setDefaults([$name => $answers]);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
 |