[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the PluginUserSettings class, to handle plugin/user/name/value "pairs". This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.
Author: | blueyed: Daniel HAHLER. |
Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
Version: | $Id: _pluginusersettings.class.php,v 1.1 2007/06/25 11:00:53 fplanque Exp $ |
Poids: | 182 lignes (6 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
PluginUserSettings:: (4 méthodes):
PluginUserSettings()
get()
set()
delete()
Classe: PluginUserSettings - X-Ref
Class to handle settings for pluginsPluginUserSettings( $plugin_ID ) X-Ref |
Constructor param: integer plugin ID where these settings are for |
get( $setting, $user_ID = NULL ) X-Ref |
Get a setting by name for the Plugin. param: string The settings name. param: integer User ID (by default $current_User->ID will be used - make sure that it is available already in your event!) return: mixed|NULL|false False in case of error, NULL if not found, the value otherwise. |
set( $setting, $value, $user_ID = NULL ) X-Ref |
Set a Plugin setting. Use {@link dbupdate()} to write it to the database. param: string The settings name. param: string The settings value. param: integer User ID (by default $current_User->ID will be used - make sure that it is available already in your event!) return: boolean true, if the value has been set, false if it has not changed. |
delete( $setting, $user_ID = NULL ) X-Ref |
Delete a setting. Use {@link dbupdate()} to commit it to the database. param: string name of setting param: integer User ID (by default $current_User->ID will be used - make sure that it is available already in your event!) |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |