Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
block_recentlyaccesseditems

Files

file  access.php
 Capabilities for the Recently accessed items block.
 
file  block_recentlyaccesseditems.php
 Class definition for the Recently accessed items block.
 
file  events.php
 Recently accessed items event observer.
 
file  external.php
 External API.
 
file  helper.php
 Recently accessed items helper.
 
file  lib.php
 The interface library between the core and the subsystem.
 
file  main.php
 Class containing data for Recently accessed items block.
 
file  observer.php
 Event observer.
 
file  provider.php
 Privacy Subsystem implementation for Recently accessed items block.
 
file  recentlyaccesseditems_item_exporter.php
 Class for exporting the data needed to render a recent accessed item.
 
file  renderer.php
 Recently accessed items block renderer.
 
file  services.php
 Web service for Recently accessed items block.
 
file  upgrade.php
 This file keeps track of upgrades to the recentlyaccesseditems block.
 
file  version.php
 Version details for the Recent activities block.
 

Namespaces

 block_recentlyaccesseditems
  
 
 block_recentlyaccesseditems\external
  
 
 block_recentlyaccesseditems\output
  
 
 block_recentlyaccesseditems\privacy
  
 

Classes

class  block_recentlyaccesseditems
 Recently accessed items block class. More...
 
class  block_recentlyaccesseditems\external
 External API class. More...
 
class  core_competency\external\recentlyaccesseditems_item_exporter
 Class for exporting the data needed to render a recent accessed item. More...
 
class  block_recentlyaccesseditems\helper
 Recently accessed items helper. More...
 
class  block_recentlyaccesseditems\observer
 Events observer. More...
 
class  block_recentlyaccesseditems\output\main
 Class containing data for Recently accessed items block. More...
 
class  block_recentlyaccesseditems\output\renderer
 Recently accessed items block renderer. More...
 
class  block_recentlyaccesseditems\privacy\provider
 Privacy Subsystem for block_recentlyaccesseditems. More...
 

Functions

 block_recentlyaccesseditems_pre_course_delete ($course)
 Pre-delete course hook to cleanup any records with references to the deleted course. More...
 
 block_recentlyaccesseditems_pre_course_module_delete ($cm)
 Pre-delete course module hook to cleanup any records with references to the deleted module. More...
 
 xmldb_block_recentlyaccesseditems_upgrade ($oldversion, $block)
 Upgrade the recentlyaccesseditems db table. More...
 

Variables

 $capabilities
 
 $functions
 
 $observers
 
$plugin component = 'block_recentlyaccesseditems'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Function Documentation

◆ block_recentlyaccesseditems_pre_course_delete()

block_recentlyaccesseditems_pre_course_delete (   $course)

Pre-delete course hook to cleanup any records with references to the deleted course.

Parameters
stdClass$courseThe deleted course

◆ block_recentlyaccesseditems_pre_course_module_delete()

block_recentlyaccesseditems_pre_course_module_delete (   $cm)

Pre-delete course module hook to cleanup any records with references to the deleted module.

Parameters
stdClass$cmThe deleted course module

◆ xmldb_block_recentlyaccesseditems_upgrade()

xmldb_block_recentlyaccesseditems_upgrade (   $oldversion,
  $block 
)

Upgrade the recentlyaccesseditems db table.

Parameters
$oldversion
Return values
bool

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'block/recentlyaccesseditems:myaddinstance' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/my:manageblocks'
)
)

◆ $functions

$functions
Initial value:
= array(
'block_recentlyaccesseditems_get_recent_items' => array(
'classname' => 'block_recentlyaccesseditems\external',
'methodname' => 'get_recent_items',
'classpath' => '',
'description' => 'List of items a user has accessed most recently.',
'type' => 'read',
'ajax' => true,
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
)

◆ $observers

$observers
Initial value:
= array (
array(
'eventname' => '\core\event\course_module_viewed',
'callback' => 'block_recentlyaccesseditems\observer::store',
),
array(
'eventname' => '\core\event\course_module_deleted',
'callback' => 'block_recentlyaccesseditems\observer::remove'
),
)
MOODLE_OFFICIAL_MOBILE_SERVICE
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition: moodlelib.php:501
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