Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 44... Línea 44...
44
 
44
 
45
    /**
45
    /**
46
     * @var array form field name => corresponding quiz_attempt:: state constant.
46
     * @var array form field name => corresponding quiz_attempt:: state constant.
47
     */
47
     */
-
 
48
    protected static $statefields = [
48
    protected static $statefields = [
49
        'statenotstarted' => quiz_attempt::NOT_STARTED,
49
        'stateinprogress' => quiz_attempt::IN_PROGRESS,
50
        'stateinprogress' => quiz_attempt::IN_PROGRESS,
-
 
51
        'stateoverdue'    => quiz_attempt::OVERDUE,
50
        'stateoverdue'    => quiz_attempt::OVERDUE,
52
        'statesubmitted' => quiz_attempt::SUBMITTED,
51
        'statefinished'   => quiz_attempt::FINISHED,
53
        'statefinished'   => quiz_attempt::FINISHED,
52
        'stateabandoned'  => quiz_attempt::ABANDONED,
54
        'stateabandoned'  => quiz_attempt::ABANDONED,
Línea 53... Línea 55...
53
    ];
55
    ];
Línea 63... Línea 65...
63
 
65
 
64
    /**
66
    /**
65
     * @var array|null of quiz_attempt::IN_PROGRESS, etc. constants. null means
67
     * @var array|null of quiz_attempt::IN_PROGRESS, etc. constants. null means
66
     *      no restriction.
68
     *      no restriction.
-
 
69
     */
-
 
70
    public $states = [
67
     */
71
        quiz_attempt::NOT_STARTED,
-
 
72
        quiz_attempt::IN_PROGRESS,
-
 
73
        quiz_attempt::OVERDUE,
-
 
74
        quiz_attempt::SUBMITTED,
68
    public $states = [quiz_attempt::IN_PROGRESS, quiz_attempt::OVERDUE,
75
        quiz_attempt::FINISHED,
-
 
76
        quiz_attempt::ABANDONED,
Línea 69... Línea 77...
69
            quiz_attempt::FINISHED, quiz_attempt::ABANDONED];
77
    ];
70
 
78
 
71
    /**
79
    /**
72
     * @var bool whether to show all finished attmepts, or just the one that gave
80
     * @var bool whether to show all finished attmepts, or just the one that gave