◆ __construct()
MobileFrontend\Features\FeaturesManager::__construct |
( |
UserModes | $userModes | ) |
|
◆ getAvailableForMode()
MobileFrontend\Features\FeaturesManager::getAvailableForMode |
( |
IUserMode | $mode | ) |
|
List all features that are available in given mode.
This function do not check if user enabled given mode.
- Parameters
-
- Returns
- array<IFeature>
◆ getFeature()
MobileFrontend\Features\FeaturesManager::getFeature |
( |
| $id | ) |
|
Get feature.
- Parameters
-
- Returns
- IFeature
◆ getMode()
MobileFrontend\Features\FeaturesManager::getMode |
( |
| $modeIdentifier | ) |
|
Retrieve the current mode.
- Parameters
-
string | $modeIdentifier | Mode identifier |
- Returns
- IUserMode
◆ registerFeature()
MobileFrontend\Features\FeaturesManager::registerFeature |
( |
IFeature | $feature | ) |
|
Register a new MobileFronted feature.
- Parameters
-
IFeature | $feature | Feature to register |
- Exceptions
-
RuntimeException
The documentation for this class was generated from the following file:
- includes/Features/FeaturesManager.php