Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 118... Línea 118...
118
        }
118
        }
119
        return $sectionsarr;
119
        return $sectionsarr;
120
    }
120
    }
Línea 121... Línea 121...
121
 
121
 
-
 
122
    /**
-
 
123
     * Given one section id, returns the full section record.
-
 
124
     *
-
 
125
     * @param int $sectionid
-
 
126
     * @return stdClass
-
 
127
     */
-
 
128
    public static function get_section_from_id($sectionid): stdClass {
-
 
129
        global $DB;
-
 
130
        return $DB->get_record('course_sections', ['id' => $sectionid]);
-
 
131
    }
-
 
132
 
122
    /**
133
    /**
123
     * Given one course id, return its format in DB
134
     * Given one course id, return its format in DB
124
     */
135
     */
125
    public static function get_courseformat_from_courseid($courseid) {
136
    public static function get_courseformat_from_courseid($courseid) {