Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
block_recent_activity_renderer Class Reference

recent_activity block rendrer More...

Inheritance diagram for block_recent_activity_renderer:

Public Member Functions

 recent_activity ($course, $timestart, $recentenrolments, $structuralchanges, $modulesrecentactivity)
 Renders HTML to display recent_activity block.
 

Protected Member Functions

 structural_change ($change)
 Renders HTML for one change in course structure.
 

Detailed Description

recent_activity block rendrer

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ recent_activity()

block_recent_activity_renderer::recent_activity ( $course,
$timestart,
$recentenrolments,
$structuralchanges,
$modulesrecentactivity )

Renders HTML to display recent_activity block.

Parameters
stdClass$course
int$timestart
array$recentenrolmentsarray of changes in enrolments
array$structuralchangesarray of changes in course structure
array$modulesrecentactivityarray of changes in modules (provided by modules)
Return values
string

◆ structural_change()

block_recent_activity_renderer::structural_change ( $change)
protected

Renders HTML for one change in course structure.

See also
block_recent_activity::get_structural_changes()
Parameters
array$changearray containing attributes 'action' - one of: 'add mod', 'update mod', 'delete mod' 'module' - instance of cm_info (for 'delete mod' it is an object with attributes modname and modfullname)
Return values
string

The documentation for this class was generated from the following file: