Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
block_starredcourses

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 = 2024041600
 
$plugin component = 'block_starredcourses'
 
$plugin version = 2024042200
 

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