|
Odyssey
|
Public Member Functions | |
| HasFeature (String $feature) | |
| GetFeatureData (String $feature) | |
Static Public Member Functions | |
| static | GetInstance ($dbh) |
Protected Member Functions | |
| __construct ($dbh) | |
| GetConfig () | |
| LoadConfig () | |
Protected Attributes | |
| $data = [] | |
| $dbh | |
Static Protected Attributes | |
| static | $instance |
Class to retrieve and contain the database configuration for Feature Gates
Definition at line 8 of file FeatureGateConfig.i.
|
protected |
FeatureGateConfig constructor.
| $dbh | Object Database handler |
| exception |
Definition at line 19 of file FeatureGateConfig.i.
|
protected |
Database access. Ideally this would be repository class.
| exception |
Definition at line 30 of file FeatureGateConfig.i.
| FeatureGateConfig::GetFeatureData | ( | String | $feature | ) |
Return the config for a particular feature.
| String | $feature | Indicates which feature to gate |
Definition at line 92 of file FeatureGateConfig.i.
|
static |
Create or recover an instance of FeatureGateConfig
| $dbh | Object Database handle |
| exception |
Definition at line 69 of file FeatureGateConfig.i.
| FeatureGateConfig::HasFeature | ( | String | $feature | ) |
Checks if the feature is represented in the config
| String | $feature | Indicates which feature to gate |
Definition at line 82 of file FeatureGateConfig.i.
|
protected |
Iterates through data, loading it by feature id
| exception |
Definition at line 51 of file FeatureGateConfig.i.
1.8.15