Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 234... Línea 234...
234
 
234
 
235
        return $output;
235
        return $output;
Línea 236... Línea 236...
236
    }
236
    }
237
 
-
 
238
    /**
-
 
239
     * Print the wiki activity information and intro
-
 
240
     *
237
 
241
     * @return string
238
    /**
-
 
239
     * @deprecated since Moodle 4.0 MDL-72413. Now handled in PAGE's activity header
242
     * @deprecated since 4.0. Now handled in PAGE's activity header
240
     */
243
     */
-
 
244
    public function wiki_info() {
-
 
245
        global $USER;
-
 
246
 
-
 
247
        debugging(
-
 
248
            'wiki_info() is deprecated. Output is handled within the $PAGE->activityheader instead.',
-
 
249
            DEBUG_DEVELOPER
-
 
250
        );
-
 
251
 
-
 
252
        // Display any activity information (eg completion requirements / dates).
-
 
253
        $cminfo = cm_info::create($this->page->cm);
241
    #[\core\attribute\deprecated(null, since: '4.3', mdl: 'MDL-72413', final: true)]
254
        $completiondetails = \core_completion\cm_completion_details::get_instance($cminfo, $USER->id);
-
 
255
        $activitydates = \core\activity_dates::get_dates_for_module($cminfo, $USER->id);
-
 
256
        $info = $this->output->activity_information($cminfo, $completiondetails, $activitydates);
-
 
257
 
-
 
258
        // Add the rest of the wiki info.
-
 
259
        $info .= $this->output->box(format_module_intro('wiki',
-
 
260
                $this->page->activityrecord, $this->page->cm->id), 'generalbox', 'intro');
-
 
261
 
242
    public function wiki_info() {
Línea 262... Línea 243...
262
        return $info;
243
        \core\deprecation::emit_deprecation([self::class, __FUNCTION__]);
263
    }
244
    }
264
 
245