Proyectos de Subversion Moodle

Rev

Rev 24 | Rev 34 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 24 Rev 33
Línea 79... Línea 79...
79
//$courses_with_autoenrol  = $DB->get_records('enrol', ['enrol' => 'manual', 'status' => 0]);
79
//$courses_with_autoenrol  = $DB->get_records('enrol', ['enrol' => 'manual', 'status' => 0]);
80
//print_r($courses_with_autoenrol); exit;
80
//print_r($courses_with_autoenrol); exit;
Línea 81... Línea 81...
81
 
81
 
82
 
-
 
83
header('Content-type: text/plain');
-
 
84
$plugins = enrol_get_plugins(true);
-
 
85
print_r($plugins);
-
 
86
 
82
 
87
 
83
header('Content-type: text/plain');
88
$enrol = enrol_get_plugin($enrolmethod);
84
$enrol = enrol_get_plugin($enrolmethod);
Línea 89... Línea 85...
89
print_r($enrol);
85
print_r($enrol);
Línea 90... Línea 86...
90
if ($enrol) {
86
if ($enrol) {
Línea 91... Línea 87...
91
 
87
 
92
 
88
 
-
 
89
    
-
 
90
    $courses = get_courses();
-
 
91
    
93
    
92
    $courses = $DB->get_records('course', ['visible' => 1], 'shortname', 'courseid, enddate, fullname, idnumber, shortname, startdate, summary');
-
 
93
    
94
    $courses = get_courses();
94
    foreach($courses as $course)
95
    
95
    {
Línea 96... Línea 96...
96
    print_r($courses); exit;
96
        if(!$course->visible) {
97
    
97
            continue;