Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
block_accessreview

Directories

directory classes
  
 

Namespaces

namespace  block_accessreview\external
  
 
namespace  block_accessreview\privacy
 Privacy Subsystem implementation for block_accessreview.
 

Classes

class  block_accessreview
 Definition of the accessreview block. More...
 
class  block_accessreview\external\get_module_data
 Web service to fetch module data. More...
 
class  block_accessreview\external\get_section_data
 Web service to fetch section data. More...
 
class  block_accessreview\privacy\provider
 The accessreview block stores a user preference data. More...
 

Functions

 block_accessreview_get_fontawesome_icon_map ()
 Get icon mapping for font-awesome.
 
 block_accessreview_user_preferences ()
 Define preferences which may be set via the core_user_set_user_preferences external function.
 

Variables

 $capabilities
 
 $functions
 
 $plugin = 2023100400
 
$plugin component = 'block_accessreview'
 
$plugin dependencies
 
$plugin version = 2023100900
 

Detailed Description

Function Documentation

◆ block_accessreview_user_preferences()

block_accessreview_user_preferences ( )

Define preferences which may be set via the core_user_set_user_preferences external function.

@uses core_user\is_current_user

Return values
array[]

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'block/accessreview:addinstance' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
'block/accessreview:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
),
)
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition accesslib.php:115
const CONTEXT_BLOCK
Block context level - one instance for each block, sticky blocks are tricky because ppl think they sh...
Definition accesslib.php:136

◆ $functions

$functions
Initial value:
= [
'block_accessreview_get_module_data' => [
'classname' => 'block_accessreview\external\get_module_data',
'methodname' => 'execute',
'description' => 'Gets error data for course modules.',
'type' => 'read',
'ajax' => true,
'capabilities' => 'block/accessreview:view',
],
'block_accessreview_get_section_data' => [
'classname' => 'block_accessreview\external\get_section_data',
'methodname' => 'execute',
'description' => 'Gets error data for course sections.',
'type' => 'read',
'ajax' => true,
'capabilities' => 'block/accessreview:view',
]
]

◆ dependencies

$plugin dependencies
Initial value:
= [
'tool_brickfield' => ANY_VERSION,
]
const ANY_VERSION
Any version - special value that can be used in $plugin->dependencies in version.php files.
Definition component.php:38