Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 
 get_content_validator ()
 Returns an instance of the H5PContentValidator class.
 
 get_core ()
 Returns an instance of the core_h5p\core class.
 
 get_editor ()
 Returns an instance of H5Peditor class.
 
 get_framework ()
 Returns an instance of the core_h5p\framework class.
 
 get_storage ()
 Returns an instance of the H5PStorage class.
 
 get_validator ()
 Returns an instance of the H5PValidator class.
 

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
Moodle\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
Moodle\H5PStorage

◆ get_validator()

core_h5p\factory::get_validator ( )

Returns an instance of the H5PValidator class.

Return values
Moodle\H5PValidator

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