PHP Class jPrefManager

Show file Open project: jelix/jelix Class Usage Examples

Protected Properties

Property Type Description
$_ini
$_pref_config_file

Public Methods

Method Description
addGroup ( jPrefItemGroup $grp ) Add a group of preference into the preference config.
addPreference ( $pref ) Add a preference into the preference config.
getAllPreferences ( $get_prefs_values = true )
getPref ( $pref_id, $get_pref_value = true )
importFromIni ( $iniFile )

Protected Methods

Method Description
_getPrefFile ( )
_loadIniModifier ( )

Method Details

_getPrefFile() protected static method

protected static _getPrefFile ( )

_loadIniModifier() protected method

protected _loadIniModifier ( )

addGroup() public method

Add a group of preference into the preference config.
public addGroup ( jPrefItemGroup $grp )
$grp jPrefItemGroup the preference group to add

addPreference() public method

Add a preference into the preference config.
public addPreference ( $pref )

getAllPreferences() public static method

public static getAllPreferences ( $get_prefs_values = true )

getPref() public static method

public static getPref ( $pref_id, $get_pref_value = true )

importFromIni() public static method

Since: 1.6.5
public static importFromIni ( $iniFile )

Property Details

$_ini protected static property

protected static $_ini

$_pref_config_file protected static property

protected static $_pref_config_file