PHP 클래스 CampConfig

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 메소드들

메소드 설명
TranslateSettingName ( $p_varName ) : mixed Translates the given setting variable name into the form namespace and var name.
getAllSettings ( ) : array Gets all the configuration settings
getSetting ( $p_varName ) : mixed Gets a setting var value from configuration.
singleton ( string $p_configFile = null ) : object Builds an instance object of this class only if there is no one.

비공개 메소드들

메소드 설명
__construct ( string $p_configFile = null ) Class constructor

메소드 상세

TranslateSettingName() 공개 정적인 메소드

Translates the given setting variable name into the form namespace and var name.
public static TranslateSettingName ( $p_varName ) : mixed
리턴 mixed null If the given value is not appropriate settingVar An array containing the namespace and variable actual name

getAllSettings() 공개 메소드

Gets all the configuration settings
public getAllSettings ( ) : array
리턴 array m_config The array of settings

getSetting() 공개 메소드

Gets a setting var value from configuration.
public getSetting ( $p_varName ) : mixed
$p_varName The name of the setting variable
리턴 mixed null Var name passed is no valid mixed The value of the setting variable

singleton() 공개 정적인 메소드

Builds an instance object of this class only if there is no one.
public static singleton ( string $p_configFile = null ) : object
$p_configFile string The full path to the configuration file
리턴 object $m_instance The CampConfig instance