Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
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

 block_recentlyaccessedcourses\output
  
 
 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 component = 'block_recentlyaccessedcourses'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

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'
)
)
CONTEXT_SYSTEM
const CONTEXT_SYSTEM
System context level - only one instance in every system.
Definition: accesslib.php:122
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115