Source for file freeanswer.class.php
Documentation is available at freeanswer.class.php
DOKEOS - elearning and course management software
For a full list of contributors, see documentation/credits.html
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See "documentation/licence.html" more details.
Rue des Palais 44 Paleizenstraat
B-1030 Brussels - Belgium
* File containing the FreeAnswer class.
* This class allows to instantiate an object of type FREE_ANSWER,
* extending the class question
* @package dokeos.exercise
* @version $Id: admin.php 10680 2007-01-11 21:26:23Z pcool $
static $typePicture = 'open_answer.gif';
static $explanationLangVar = 'freeAnswer';
* function which redifines Question::createAnswersForm
* @param the formvalidator instance
$form -> addElement('text','weighting',get_lang('Weighting'),'size="5"');
$form -> setDefaults(array('weighting' => $this->weighting));
$form -> setDefaults(array('weighting' => '10'));
* abstract function which creates the form to create / edit the answers of the question
* @param the formvalidator instance
$this -> weighting = $form -> getSubmitValue('weighting');
|