Jelix 1.7.18

jPrefManager
in package

Tags
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'

Methods

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
Return values
mixed

getAllPreferences()

public static getAllPreferences([mixed $get_prefs_values = true ]) : mixed
Parameters
$get_prefs_values : mixed = true
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
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
Return values
mixed

_loadIniModifier()

protected _loadIniModifier() : mixed
Return values
mixed

Search results