Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 108... Línea 108...
108
     *
108
     *
109
     * @param array|stdClass $record
109
     * @param array|stdClass $record
110
     * @param array $options
110
     * @param array $options
111
     * @return stdClass repository instance record
111
     * @return stdClass repository instance record
112
     */
112
     */
113
    public function create_instance($record = null, array $options = null) {
113
    public function create_instance($record = null, ?array $options = null) {
114
        global $CFG, $DB, $PAGE;
114
        global $CFG, $DB, $PAGE;
115
        require_once($CFG->dirroot . '/repository/lib.php');
115
        require_once($CFG->dirroot . '/repository/lib.php');
Línea 116... Línea 116...
116
 
116
 
117
        $this->instancecount++;
117
        $this->instancecount++;
Línea 171... Línea 171...
171
     * @param stdClass|array $record data to use to set up the type
171
     * @param stdClass|array $record data to use to set up the type
172
     * @param array $options options for the set up of the type
172
     * @param array $options options for the set up of the type
173
     *
173
     *
174
     * @return stdClass repository type record
174
     * @return stdClass repository type record
175
     */
175
     */
176
    public function create_type($record = null, array $options = null) {
176
    public function create_type($record = null, ?array $options = null) {
177
        global $CFG, $DB;
177
        global $CFG, $DB;
178
        require_once($CFG->dirroot . '/repository/lib.php');
178
        require_once($CFG->dirroot . '/repository/lib.php');
Línea 179... Línea 179...
179
 
179
 
180
        $record = (array) $record;
180
        $record = (array) $record;