Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 400... Línea 400...
400
                !isset($batchinserts[$arearecord->courseid])) {
400
                !isset($batchinserts[$arearecord->courseid])) {
401
                $batchinserts[$arearecord->courseid] = ['courseid' => $arearecord->courseid, 'item' => 'cache'];
401
                $batchinserts[$arearecord->courseid] = ['courseid' => $arearecord->courseid, 'item' => 'cache'];
402
            }
402
            }
403
        }
403
        }
Línea -... Línea 404...
-
 
404
 
-
 
405
        $rs->close();
404
 
406
 
405
        if (count($batchinserts) > 0) {
407
        if (count($batchinserts) > 0) {
406
            $DB->insert_records(self::DB_PROCESS, $batchinserts);
408
            $DB->insert_records(self::DB_PROCESS, $batchinserts);
Línea 407... Línea 409...
407
        }
409
        }
Línea 596... Línea 598...
596
     * To be called from scheduled task.
598
     * To be called from scheduled task.
597
     * @param int|null $courseid
599
     * @param int|null $courseid
598
     * @throws \coding_exception
600
     * @throws \coding_exception
599
     * @throws \dml_exception
601
     * @throws \dml_exception
600
     */
602
     */
601
    public static function store_result_summary(int $courseid = null) {
603
    public static function store_result_summary(?int $courseid = null) {
602
        global $DB;
604
        global $DB;
Línea 603... Línea 605...
603
 
605
 
604
        if (static::is_okay_to_cache() && ($courseid == null)) {
606
        if (static::is_okay_to_cache() && ($courseid == null)) {
605
            mtrace('Attempting to run update cache with no courseid, returning');
607
            mtrace('Attempting to run update cache with no courseid, returning');