Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Attributes | List of all members
core_h5p\factory Class Reference

H5P factory class. More...

Public Member Functions

 __construct ()
 factory constructor.
 
 get_autoloader ()
 Returns an instance of the core_h5p::local::library::autoloader class. More...
 
 get_content_validator ()
 Returns an instance of the H5PContentValidator class. More...
 
 get_core ()
 Returns an instance of the core_h5p::core class. More...
 
 get_editor ()
 Returns an instance of H5Peditor class. More...
 
 get_framework ()
 Returns an instance of the core_h5p::framework class. More...
 
 get_storage ()
 Returns an instance of the H5PStorage class. More...
 
 get_validator ()
 Returns an instance of the H5PValidator class. More...
 

Protected Attributes

core_h5p local library autoloader $autoloader
 The autoloader.
 
content_validator $content_validator
 The Moodle H5PContentValidator implementation.
 
core_h5p core $core
 The Moodle H5PCore implementation.
 
H5peditor $editor
 
editor_ajax $editorajaxinterface
 The Moodle H5PEditorAjaxInterface implementation.
 
editor_framework $editorframework
 The Moodle H5peditorStorage implementation.
 
core_h5p framework $framework
 The Moodle H5PFramework implementation.
 
core_h5p file_storage $storage
 The Moodle H5PStorage implementation.
 
validator $validator
 The Moodle H5PValidator implementation.
 

Detailed Description

H5P factory class.

This class is used to decouple the construction of H5P related objects.

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

Member Function Documentation

◆ get_autoloader()

core_h5p\factory::get_autoloader ( )

Returns an instance of the core_h5p::local::library::autoloader class.

Return values
core_h5p::local::library::autoloader

◆ get_content_validator()

core_h5p\factory::get_content_validator ( )

Returns an instance of the H5PContentValidator class.

Return values
H5PContentValidator

◆ get_core()

core_h5p\factory::get_core ( )

Returns an instance of the core_h5p::core class.

Return values
core_h5p::core

◆ get_editor()

core_h5p\factory::get_editor ( )

Returns an instance of H5Peditor class.

Return values
H5peditor

◆ get_framework()

core_h5p\factory::get_framework ( )

Returns an instance of the core_h5p::framework class.

Return values
core_h5p::framework

◆ get_storage()

core_h5p\factory::get_storage ( )

Returns an instance of the H5PStorage class.

Return values
H5PStorage

◆ get_validator()

core_h5p\factory::get_validator ( )

Returns an instance of the H5PValidator class.

Return values
H5PValidator

The documentation for this class was generated from the following file: