Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 37... Línea 37...
37
    /** @var array Array of grouping info for course */
37
    /** @var array Array of grouping info for course */
38
    protected $allgroupings;
38
    protected $allgroupings;
39
    /** @var int Course id that $allgroupings is for */
39
    /** @var int Course id that $allgroupings is for */
40
    protected $allgroupingscourseid;
40
    protected $allgroupingscourseid;
Línea 41... Línea 41...
41
 
41
 
42
    protected function get_javascript_init_params($course, \cm_info $cm = null,
42
    protected function get_javascript_init_params($course, ?\cm_info $cm = null,
43
            \section_info $section = null) {
43
            ?\section_info $section = null) {
44
        // Get all groups for course.
44
        // Get all groups for course.
Línea 45... Línea 45...
45
        $groupings = $this->get_all_groupings($course->id);
45
        $groupings = $this->get_all_groupings($course->id);
46
 
46
 
Línea 68... Línea 68...
68
            $this->allgroupingscourseid = $courseid;
68
            $this->allgroupingscourseid = $courseid;
69
        }
69
        }
70
        return $this->allgroupings;
70
        return $this->allgroupings;
71
    }
71
    }
Línea 72... Línea 72...
72
 
72
 
73
    protected function allow_add($course, \cm_info $cm = null,
73
    protected function allow_add($course, ?\cm_info $cm = null,
74
            \section_info $section = null) {
74
            ?\section_info $section = null) {
Línea 75... Línea 75...
75
        global $CFG, $DB;
75
        global $CFG, $DB;
76
 
76
 
77
        // Check if groupings are in use for the course. (Unlike the 'group'
77
        // Check if groupings are in use for the course. (Unlike the 'group'