Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 337... Línea 337...
337
     *
337
     *
338
     * @param int $userid The id if the user with parental responsibility
338
     * @param int $userid The id if the user with parental responsibility
339
     * @param array $extrafields Extra fields to be included in result
339
     * @param array $extrafields Extra fields to be included in result
340
     * @return array of objects
340
     * @return array of objects
341
     */
341
     */
342
    public static function get_user_minors($userid, array $extrafields = null) {
342
    public static function get_user_minors($userid, ?array $extrafields = null) {
343
        global $DB;
343
        global $DB;
Línea 344... Línea 344...
344
 
344
 
345
        $ctxfields = context_helper::get_preload_record_columns_sql('c');
345
        $ctxfields = context_helper::get_preload_record_columns_sql('c');
346
        $userfieldsapi = \core_user\fields::for_name()->with_userpic()->including(...($extrafields ?? []));
346
        $userfieldsapi = \core_user\fields::for_name()->with_userpic()->including(...($extrafields ?? []));
Línea 588... Línea 588...
588
 
588
 
589
        return [
589
        return [
590
            'subdirs' => false,
590
            'subdirs' => false,
591
            'maxfiles' => -1,
591
            'maxfiles' => -1,
-
 
592
            'context' => context_system::instance(),
592
            'context' => context_system::instance(),
593
            'noclean' => true,
593
        ];
594
        ];
Línea 594... Línea 595...
594
    }
595
    }
595
 
596
 
Línea 604... Línea 605...
604
 
605
 
605
        return [
606
        return [
606
            'subdirs' => false,
607
            'subdirs' => false,
607
            'maxfiles' => -1,
608
            'maxfiles' => -1,
-
 
609
            'context' => context_system::instance(),
608
            'context' => context_system::instance(),
610
            'noclean' => true,
609
        ];
611
        ];
Línea 610... Línea 612...
610
    }
612
    }
611
 
613