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

Files

file  access.php
 Starred courses block capabilities.
 
file  block_starredcourses.php
 Starred courses block.
 
file  external.php
 Starred courses block external API.
 
file  main.php
 Class containing data for starred courses block.
 
file  provider.php
 Privacy Subsystem implementation for block_starredcourses.
 
file  renderer.php
 Starred courses block renderer.
 
file  services.php
 File description.
 
file  settings.php
 Settings for the starredcourses block.
 
file  version.php
 Starred courses block version details.
 

Namespaces

 block_starredcourses\output
  
 
 block_starredcourses\privacy
  
 

Classes

class  block_starredcourses
 Starred courses block definition class. More...
 
class  block_starredcourses\output\main
 Class containing data for starred courses block. More...
 
class  block_starredcourses\output\renderer
 Starred courses block renderer. More...
 
class  block_starredcourses\privacy\provider
 Privacy Subsystem for block_starredcourses. More...
 
class  block_starredcourses_external
 Starred courses block external functions. More...
 

Variables

 $capabilities
 
 $functions
 
$plugin component = 'block_starredcourses'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Variable Documentation

◆ $capabilities

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

◆ $functions

$functions
Initial value:
= array(
'block_starredcourses_get_starred_courses' => array(
'classpath' => 'block/starredcourses/classes/external.php',
'classname' => 'block_starredcourses_external',
'methodname' => 'get_starred_courses',
'description' => 'Get users starred courses.',
'type' => 'read',
'ajax' => true,
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
)
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