Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
block_recent_activity

Namespaces

namespace  block_recent_activity\privacy
  
 
namespace  block_recent_activity\task
  
 

Classes

class  block_recent_activity
 class block_recent_activity More...
 
class  block_recent_activity\privacy\provider
 The block_recent_activity does not keep any data for more than COURSE_MAX_RECENT_PERIOD. More...
 
class  block_recent_activity\task\cleanup
 Task for updating RSS feeds for rss client block. More...
 
class  block_recent_activity_observer
 Event observer. More...
 
class  block_recent_activity_renderer
 recent_activity block rendrer More...
 

Functions

 xmldb_block_recent_activity_upgrade ($oldversion, $block)
 Upgrade code for the recent activity block.
 

Variables

 $capabilities
 
 $observers
 
 $plugin = 2024041600
 
 $tasks
 
$plugin component = 'block_recent_activity'
 
$plugin version = 2024042200
 

Detailed Description

Function Documentation

◆ xmldb_block_recent_activity_upgrade()

xmldb_block_recent_activity_upgrade ( $oldversion,
$block )

Upgrade code for the recent activity block.

Parameters
int$oldversion
object$block

Variable Documentation

◆ $observers

$observers
Initial value:
= array (
array (
'eventname' => '\core\event\course_module_created',
'callback' => 'block_recent_activity_observer::store',
'internal' => false,
'priority' => 1000,
),
array (
'eventname' => '\core\event\course_module_updated',
'callback' => 'block_recent_activity_observer::store',
'internal' => false,
'priority' => 1000,
),
array (
'eventname' => '\core\event\course_module_deleted',
'callback' => 'block_recent_activity_observer::store',
'internal' => false,
'priority' => 1000,
),
)

◆ $tasks

$tasks
Initial value:
= array(
array(
'classname' => '\block_recent_activity\task\cleanup',
'blocking' => 0,
'minute' => 'R',
'hour' => 'R',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
'disabled' => 0
)
)