Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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

namespace  block_starredcourses\output
  
 
namespace  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 = 2020060900
 
$plugin component = 'block_starredcourses'
 
$plugin version = 2020061500
 

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'
)
)
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

◆ $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),
),
)
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition: moodlelib.php:501