Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
block_completionstatus

Files

file  access.php
 Completion status block caps.
 
file  block_completionstatus.php
 Block for displayed logged in user's course completion status.
 
file  provider.php
 Privacy Subsystem implementation for block_completionstatus.
 
file  upgrade.php
 This file keeps track of upgrades to the completion status block.
 
file  version.php
 Version info.
 

Namespaces

namespace  block_completionstatus\privacy
  
 

Classes

class  block_completionstatus
 Course completion status. More...
 
class  block_completionstatus\privacy\provider
 Privacy Subsystem for block_completionstatus implementing null_provider. More...
 

Functions

 xmldb_block_completionstatus_upgrade ($oldversion, $block)
 Handles upgrading instances of this block. More...
 

Variables

 $capabilities
 
 $plugin = 2020060900
 
$plugin component = 'block_completionstatus'
 
$plugin dependencies = array('report_completion' => 2020060900)
 
$plugin version = 2020061500
 

Detailed Description

Function Documentation

◆ xmldb_block_completionstatus_upgrade()

xmldb_block_completionstatus_upgrade (   $oldversion,
  $block 
)

Handles upgrading instances of this block.

Parameters
int$oldversion
object$block

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'block/completionstatus:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:manageblocks'
),
)
const RISK_SPAM
Capability allows users to add content others may see - see
Definition: accesslib.php:147
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115
const RISK_XSS
Capability allows user to add scripted content - see
Definition: accesslib.php:143
const CONTEXT_BLOCK
Block context level - one instance for each block, sticky blocks are tricky because ppl think they sh...
Definition: accesslib.php:136