Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
tool_uploadcourse

Namespaces

namespace  tool_uploadcourse
  
 
namespace  tool_uploadcourse\privacy
  
 

Classes

class  tool_uploadcourse\permissions
 
class  tool_uploadcourse\privacy\provider
 Privacy Subsystem for tool_uploadcourse implementing null_provider. More...
 
class  tool_uploadcourse_base_form
 Base import form. More...
 
class  tool_uploadcourse_course
 Course class. More...
 
class  tool_uploadcourse_helper
 Class containing a set of helpers. More...
 
class  tool_uploadcourse_processor
 Processor class. More...
 
class  tool_uploadcourse_step1_form
 Upload a file CVS file with course information. More...
 
class  tool_uploadcourse_step2_form
 Specify course upload details. More...
 
class  tool_uploadcourse_tracker
 Class output tracker. More...
 

Functions

 tool_uploadcourse_extend_navigation_category_settings (navigation_node $navigation, context $coursecategorycontext)
 Extends the navigation of the category admin menu with the upload courses link.
 

Variables

 $capabilities
 
 $definitions
 
 $plugin = 2024041600
 
$plugin component = 'tool_uploadcourse'
 
$plugin version = 2024042200
 

Detailed Description

Function Documentation

◆ tool_uploadcourse_extend_navigation_category_settings()

tool_uploadcourse_extend_navigation_category_settings ( navigation_node $navigation,
context $coursecategorycontext )

Extends the navigation of the category admin menu with the upload courses link.

Parameters
navigation_node$navigationThe navigation node to extend
context$coursecategorycontextThe context of the course category

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= [
'tool/uploadcourse:use' => [
'riskbitmask' => RISK_SPAM,
'captype' => 'write',
'contextlevel' => CONTEXT_COURSECAT,
'archetypes' => [
'manager' => CAP_ALLOW,
],
],
]
const RISK_SPAM
Capability allows users to add content others may see - see
Definition accesslib.php:147
const CONTEXT_COURSECAT
Course category context level - one instance for each category.
Definition accesslib.php:126
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition accesslib.php:115

◆ $definitions

$definitions
Initial value:
= array(
'helper' => array(
'mode' => cache_store::MODE_REQUEST,
)
)