Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
block_starredcourses

Topics

 external
 
 

Namespaces

namespace  block_starredcourses\output
 Class containing data for starred courses block.
 
namespace  block_starredcourses\privacy
 Privacy Subsystem implementation for block_starredcourses.
 

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

Variables

 $capabilities
 
 $functions
 
 $plugin = 2023100400
 
$plugin component = 'block_starredcourses'
 
$plugin version = 2023100900
 

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:535