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

Namespaces

namespace  block_accessreview\external
  
 
namespace  block_accessreview\privacy
  
 

Classes

class  block_accessreview
 
class  block_accessreview\external\get_module_data
 
class  block_accessreview\external\get_section_data
 
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 = 2024041600
 
$plugin component = 'block_accessreview'
 
$plugin dependencies
 
$plugin version = 2024042200
 

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