[ Index ] |
|
Code source de Plume CMS 1.2.2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 203 lignes (6 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
config:: (10 méthodes):
f()
fbool()
fint()
getCacheDir()
getMassUpdateFile()
loadWebsite()
loadPlugin()
setVar()
setField()
setContext()
f($var, $plugin='plume') X-Ref |
Get a configuration variable. param: string Variable to get param: string Plugin to get the variable from ('plume') return: mixed Return an empty string if variable not set. |
fbool($var, $plugin='plume') X-Ref |
Get a configuration variable as boolean. param: string Variable to get param: string Plugin to get the variable from ('plume') return: bool False if not set |
fint($var, $plugin='plume') X-Ref |
Get a configuration variable as integer. param: string Variable to get param: string Plugin to get the variable from ('plume') return: int 0 if not set |
getCacheDir() X-Ref |
Get cache dir. return: string Cache dir of the current website. |
getMassUpdateFile() X-Ref |
Get mass update file. return: string Path to the mass update file of the current website. |
loadWebsite($websiteid) X-Ref |
Load a website configuration file. It overwrite the configuration of the website previously loaded. It reset the configuration to an empty array in case of error. param: string Website id |
loadPlugin($pluginid) X-Ref |
Load a plugin configuration file. It reset the configuration of the plugin to an empty array in case of error. param: string Plugin id return: bool Success or not |
setVar($var, $value) X-Ref |
Set runtime configuration variable. The runtime configuration variables are used mainly in the public part, this is a good way to store the parameters for them to be accessible by all the objects. param: string Variable name param: mixed Value return: bool true |
setField($var, $value) X-Ref |
Alias of setVar() param: string Variable name param: mixed Value return: bool true |
setContext($c='manager') X-Ref |
Set the context. The context is a particular configuration variable to know if the current call is from within the manager or the public website. 4 contexts exist: - manager: When in the manager - website: When in the public website - external: When in the public website but with need of full urls - install: When in the installer param: string Context ('manager') return: bool true |
Généré le : Mon Nov 26 11:57:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |