Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 45... Línea 45...
45
    /** @var int Special value for question version ID to indicate that we should always use the latest version */
45
    /** @var int Special value for question version ID to indicate that we should always use the latest version */
46
    const ALWAYS_LATEST = 0;
46
    const ALWAYS_LATEST = 0;
Línea 47... Línea 47...
47
 
47
 
48
    /**
48
    /**
-
 
49
     * Constructor.
49
     * Constructor.
50
     *
50
     * @param \stdClass $question
51
     * @param \stdClass|\question_definition $question only the ->defaultmark field is used.
51
     */
52
     */
52
    public function __construct($question) {
53
    public function __construct($question) {
53
        $this->behaviour = 'deferredfeedback';
54
        $this->behaviour = 'deferredfeedback';
54
        $this->maxmark = $question->defaultmark;
55
        $this->maxmark = $question->defaultmark;