Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
mod_page

Topics

 backup
 
 
 external
 
 
 files
 
 
 log
 
 
 test
 
 

Namespaces

namespace  mod_page\analytics\indicator
 Activity base class.
 
namespace  mod_page\content
 Content export definition.
 
namespace  mod_page\event
 The mod_page instance list viewed event.
 
namespace  mod_page\privacy
 Privacy Subsystem implementation for mod_page.
 
namespace  mod_page\search
 Search area for mod_page activities.
 

Classes

class  mod_page\analytics\indicator\activity_base
 Activity base class. More...
 
class  mod_page\analytics\indicator\cognitive_depth
 Cognitive depth indicator - page. More...
 
class  mod_page\analytics\indicator\social_breadth
 Social breadth indicator - page. More...
 
class  mod_page\content\exporter
 A class which assists a component to export content. More...
 
class  mod_page\event\course_module_instance_list_viewed
 The mod_page instance list viewed event class. More...
 
class  mod_page\event\course_module_viewed
 The mod_page course module viewed event class. More...
 
class  mod_page\privacy\provider
 The mod_page module does not store any data. More...
 
class  mod_page\search\activity
 Search area for mod_page activities. More...
 
class  mod_page_mod_form
 
class  moodle1_mod_page_handler
 Page conversion handler. More...
 
class  page_content_file_info
 File browsing support class. More...
 

Functions

 page_get_editor_options ($context)
 
 xmldb_page_install ()
 
 xmldb_page_upgrade ($oldversion)
 

Variables

 $capabilities
 
 $plugin = 2023100400
 
$plugin component = 'mod_page'
 
$plugin cron = 0
 
$plugin version = 2023100900
 

Detailed Description

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'mod/page:view' => array(
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'guest' => CAP_ALLOW,
'user' => CAP_ALLOW,
)
),
'mod/page:addinstance' => array(
'riskbitmask' => RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/course:manageactivities'
),
)
const CONTEXT_COURSE
Course context level - one instances for each course.
Definition accesslib.php:128
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_MODULE
Course module context level - one instance for each course module.
Definition accesslib.php:130