Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
block_recentlyaccessedcourses

Namespaces

namespace  block_recentlyaccessedcourses\output
  
 
namespace  block_recentlyaccessedcourses\privacy
  
 

Classes

class  block_recentlyaccessedcourses
 Recently accessed courses block class. More...
 
class  block_recentlyaccessedcourses\output\main
 Class containing data for Recently accessed courses block. More...
 
class  block_recentlyaccessedcourses\output\renderer
 Recently accessed courses block renderer. More...
 
class  block_recentlyaccessedcourses\privacy\provider
 Privacy Subsystem for Recently accessed courses block. More...
 
class  block_recentlyaccessedcourses_generator
 

Functions

 xmldb_block_recentlyaccessedcourses_install ()
 Add the Recently accessed courses block to the dashboard for all users by default when it is installed.
 

Variables

 $capabilities
 
 $plugin = 2023041800
 
$plugin component = 'block_recentlyaccessedcourses'
 
$plugin version = 2023042400
 

Detailed Description

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'block/recentlyaccessedcourses:myaddinstance' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/my:manageblocks'
)
)
const CONTEXT_SYSTEM
System context level - only one instance in every system.
Definition accesslib.php:122
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition accesslib.php:115