Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
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_content_validator ()
 Returns an instance of the H5PContentValidator class. More...
 
 get_core ()
 Returns an instance of the core_h5p\core 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

content_validator $content_validator
 The Moodle H5PContentValidator implementation.
 
core_h5p core $core
 The Moodle H5PCore 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_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

◆ get_framework()

core_h5p\factory::get_framework ( )

Returns an instance of the core_h5p\framework class.

Return values
core_h5p

◆ 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: