rapila
Public Member Functions | Static Public Member Functions | List of all members
Settings Class Reference

Reads and consolidates .yml files from the config dirs for the current environment. More...

Public Member Functions

 _getSetting ($sSection, $sKey, $mDefaultValue)
 
getSettingsArray ($sSection=null)
 
 _getSettingIf ($mCondition, $sSection, $sKey, $mDefaultValue)
 

Static Public Member Functions

static getSetting ($sSection, $sKey, $mDefaultValue, $sPath=null)
 
static getSettingIf ($mCondition, $sSection, $sKey, $mDefaultValue, $sPath=null)
 
static createCacheKey ($sFileName)
 
static getInstance ($sFile=null)
 
static addOverride ($sSection, $sKey, $mValue, $sPath=null)
 
static clearOverrides ()
 

Detailed Description

Reads and consolidates .yml files from the config dirs for the current environment.

Member Function Documentation

Settings::_getSetting (   $sSection,
  $sKey,
  $mDefaultValue 
)
Parameters
string$sSectionconfig.yml section name
string$sKeysection var key
mixed$mDefaultValuedefault value
Returns
string|int|float|array The setting value
static Settings::addOverride (   $sSection,
  $sKey,
  $mValue,
  $sPath = null 
)
static

Adds test case override

static Settings::clearOverrides ( )
static

Removes test case overrides


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