Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
block_recentlyaccessedcourses

Files

file  access.php
 Capabilities for the Recently accessed courses block.
 
file  block_recentlyaccessedcourses.php
 Class definition for the Recently accessed courses block.
 
file  install.php
 Recently accessed courses block installation.
 
file  main.php
 Class containing data for the Recently accessed courses block.
 
file  provider.php
 Privacy Subsystem implementation for Recently accessed courses block.
 
file  renderer.php
 Recently accessed courses block renderer.
 
file  settings.php
 Settings for the recentlyaccessedcourses block.
 
file  version.php
 Version details for the Recently accessed courses block.
 

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...
 

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 = 2020060900
 
$plugin component = 'block_recentlyaccessedcourses'
 
$plugin version = 2020061500
 

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