Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes | Functions | Variables
component.php File Reference

Components (core subsystems + plugins) related code. More...

Classes

class  core_component
 Collection of components related methods. More...
 

Functions

static fill_classmap_renames_cache ()
 Records all class renames that have been made to facilitate autoloading.
 
static get_all_versions ()
 Returns hash of all versions including core and all plugins. More...
 
static get_all_versions_hash ()
 Returns hash of all versions including core and all plugins. More...
 
static get_component_classes_in_namespace ($component=null, $namespace='')
 Returns all classes in a component matching the provided namespace. More...
 
static get_component_directory ($component)
 Return exact absolute path to a plugin directory. More...
 
static get_component_list ()
 Returns a list of frankenstyle component names and their paths, for all components (plugins and subsystems). More...
 
static get_component_names ()
 Returns a list of frankenstyle component names. More...
 
static get_core_subsystems ()
 List all core subsystems and their location. More...
 
static get_plugin_directory ($plugintype, $pluginname)
 Returns the exact absolute path to plugin directory. More...
 
static get_plugin_list ($plugintype)
 Get list of plugins of given type. More...
 
static get_plugin_list_with_class ($plugintype, $class, $file=null)
 Get a list of all the plugins of a given type that define a certain class in a certain file. More...
 
static get_plugin_list_with_file ($plugintype, $file, $include=false)
 Get a list of all the plugins of a given type that contain a particular file. More...
 
static get_plugin_types ()
 Get list of available plugin types together with their location. More...
 
static get_plugin_types_with_subplugins ()
 Returns list of plugin types that allow subplugins. More...
 
static get_subplugins ($component)
 Return all subplugins of this component. More...
 
static get_subsystem_directory ($subsystem)
 Returns the exact absolute path to plugin directory. More...
 
static get_subtype_parent ($type)
 Returns parent of this subplugin type. More...
 
static invalidate_opcode_php_cache ($file)
 Invalidate opcode cache for given file, this is intended for php files that are stored in dataroot. More...
 
static is_core_subsystem ($subsystemname)
 Return true if subsystemname is core subsystem. More...
 
static is_valid_plugin_name ($plugintype, $pluginname)
 This method validates a plug name. More...
 
static load_renamed_classes ($fulldir)
 Loads the db/renamedclasses.php file from the given directory. More...
 
static normalize_component ($component)
 Normalize the component name using the "frankenstyle" rules. More...
 
static normalize_componentname ($componentname)
 Normalize the component name. More...
 

Variables

const ANY_VERSION 'any'
 Any version - special value that can be used in $plugin->dependencies in version.php files.
 
const MATURITY_ALPHA 50
 Software maturity level - internals can be tested using white box techniques.
 
const MATURITY_BETA 100
 Software maturity level - feature complete, ready for preview and testing.
 
const MATURITY_RC 150
 Software maturity level - tested, will be released unless there are fatal bugs.
 
const MATURITY_STABLE 200
 Software maturity level - ready for production deployment.
 

Detailed Description

Components (core subsystems + plugins) related code.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later