Class: PluginSettings
Source Location: /blogs/inc/MODEL/settings/_pluginsettings.class.php
Class PluginSettings
Class Overview
|
Class to handle settings for plugins Located in /blogs/inc/MODEL/settings/_pluginsettings.class.php [line 46] AbstractSettings | --PluginSettings |
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From AbstractSettings |
Inherited From AbstractSettings
|
[ Top ]
Method Summary
| PluginSettings | PluginSettings() | Constructor |
| void | delete() | Delete a setting. |
| mixed|NULL|false | get() | Get a setting by name for the Plugin. |
| boolean | set() | Set a Plugin setting. Use dbupdate() to write it to the database. |
[ Top ]
Properties
Methods
Constructor PluginSettings [line 53]
|
Constructor
Parameters:| integer | $plugin_ID: | plugin ID where these settings are for |
[ Top ]
delete [line 93]
|
Delete a setting.
Use dbupdate() to commit it to the database.
Parameters:| string | $setting: | name of setting |
Redefinition of:
- AbstractSettings::delete()
- Remove a setting.
[ Top ]
get [line 67]
|
Get a setting by name for the Plugin.
Parameters:| string | $setting: | The settings name. |
API Tags:
| Return: | False in case of error, NULL if not found, the value otherwise. |
Redefinition of:
- AbstractSettings::get()
- Get a setting from the DB settings table.
[ Top ]
set [line 80]
|
Set a Plugin setting. Use dbupdate() to write it to the database.
Parameters:| string | $setting: | The settings name. |
| string | $value: | The settings value. |
API Tags:
| Return: | true, if the value has been set, false if it has not changed. |
Redefinition of:
- AbstractSettings::set()
- Temporarily sets a setting (dbupdate() writes it to DB).
[ Top ]
