Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
mod_forum\local\factories\manager Class Reference

Managers factory. More...

Public Member Functions

 __construct (legacy_data_mapper $legacydatamapperfactory)
 Constructor. More...
 
 get_capability_manager (forum_entity $forum)
 Create a capability manager for the given forum. More...
 
 get_rating_manager ()
 Create a rating manager. More...
 

Detailed Description

Managers factory.

See: https://designpatternsphp.readthedocs.io/en/latest/Creational/SimpleFactory/README.html

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

Constructor & Destructor Documentation

◆ __construct()

mod_forum\local\factories\manager::__construct ( legacy_data_mapper  $legacydatamapperfactory)

Constructor.

Parameters
legacy_data_mapper$legacydatamapperfactoryLegacy data mapper factory

Member Function Documentation

◆ get_capability_manager()

mod_forum\local\factories\manager::get_capability_manager ( forum_entity  $forum)

Create a capability manager for the given forum.

Parameters
forum_entity$forumThe forum to manage capabilities for
Return values
capability_manager

◆ get_rating_manager()

mod_forum\local\factories\manager::get_rating_manager ( )

Create a rating manager.

Return values
rating_manager

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