Jelix 1.8.12

jPrefManager
in package

Tags
subpackage

jpref

author

Florian Lonqueu-Brochard

contributor

Laurent Jouanneau

copyright

2012 Florian Lonqueu-Brochard, 2016 Laurent Jouanneau

see
http://jelix.org
licence

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file

Table of Contents

$_ini  : mixed
$_pref_config_file  : mixed
addGroup()  : mixed
Add a group of preference into the preference config.
addPreference()  : mixed
Add a preference into the preference config.
getAllPreferences()  : mixed
getPref()  : mixed
importFromIni()  : mixed
_getPrefFile()  : mixed
_loadIniModifier()  : mixed

Properties

$_pref_config_file

protected static mixed $_pref_config_file = 'preferences.ini.php'
Tags

Methods

addGroup()

Add a group of preference into the preference config.

public addGroup(jPrefItemGroup $grp) : mixed
Parameters
$grp : jPrefItemGroup

the preference group to add

Tags
Return values
mixed

addPreference()

Add a preference into the preference config.

public addPreference(mixed $pref) : mixed

Should be used only during installation, as the configuration file is in the app/system/ directory (readonly for the web server in theory).

Parameters
$pref : mixed
Tags
Return values
mixed

getAllPreferences()

public static getAllPreferences([mixed $get_prefs_values = true ]) : mixed
Parameters
$get_prefs_values : mixed = true
Tags
Return values
mixed

getPref()

public static getPref(mixed $pref_id[, mixed $get_pref_value = true ]) : mixed
Parameters
$pref_id : mixed
$get_pref_value : mixed = true
Tags
Return values
mixed

importFromIni()

public static importFromIni(mixed $iniFile) : mixed
Parameters
$iniFile : mixed
Tags
since
1.6.5
Return values
mixed

_getPrefFile()

protected static _getPrefFile() : mixed
Tags
Return values
mixed

_loadIniModifier()

protected _loadIniModifier() : mixed
Tags
Return values
mixed

Search results