Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 314... Línea 314...
314
                'singular' => 'notification',
314
                'singular' => 'notification',
315
                'datagenerator' => 'notification',
315
                'datagenerator' => 'notification',
316
                'required' => ['subject', 'userfrom', 'userto'],
316
                'required' => ['subject', 'userfrom', 'userto'],
317
                'switchids' => ['userfrom' => 'userfromid', 'userto' => 'usertoid'],
317
                'switchids' => ['userfrom' => 'userfromid', 'userto' => 'usertoid'],
318
            ],
318
            ],
-
 
319
            'stored progress bars' => [
-
 
320
                'singular' => 'stored progress bar',
-
 
321
                'datagenerator' => 'stored_progress_bar',
-
 
322
                'required' => ['idnumber'],
-
 
323
            ],
319
        ];
324
        ];
Línea 320... Línea 325...
320
 
325
 
321
        return $entities;
326
        return $entities;
Línea 1189... Línea 1194...
1189
     */
1194
     */
1190
    protected function process_last_access_times(array $data) {
1195
    protected function process_last_access_times(array $data) {
1191
        global $DB;
1196
        global $DB;
Línea 1192... Línea 1197...
1192
 
1197
 
1193
        if (!isset($data['userid'])) {
1198
        if (!isset($data['userid'])) {
1194
            throw new Exception('\'last acces times\' requires the field \'user\' to be specified');
1199
            throw new Exception('\'last access times\' requires the field \'user\' to be specified');
Línea 1195... Línea 1200...
1195
        }
1200
        }
1196
 
1201
 
1197
        if (!isset($data['courseid'])) {
1202
        if (!isset($data['courseid'])) {
Línea 1198... Línea 1203...
1198
            throw new Exception('\'last acces times\' requires the field \'course\' to be specified');
1203
            throw new Exception('\'last access times\' requires the field \'course\' to be specified');
1199
        }
1204
        }
1200
 
1205
 
Línea 1201... Línea 1206...
1201
        if (!isset($data['lastaccess'])) {
1206
        if (!isset($data['lastaccess'])) {
1202
            throw new Exception('\'last acces times\' requires the field \'lastaccess\' to be specified');
1207
            throw new Exception('\'last access times\' requires the field \'lastaccess\' to be specified');
1203
        }
1208
        }