CORE POS - Fannie
The CORE POS back end
|
Public Member Functions | |
pluginEnable () | |
plugin_enable () | |
pluginDisable () | |
plugin_disable () | |
settingChange () | |
setting_change () | |
pluginUrl () | |
plugin_url () | |
pluginDir () | |
plugin_dir () | |
pluginDbStruct ($db, $struct_name, $db_name="") | |
plugin_db_struct ($db, $struct_name, $db_name="") | |
Static Public Member Functions | |
static | memberOf ($file) |
static | isEnabled ($plugin) |
static | pluginMap ($path="", $in=array()) |
Public Attributes | |
$plugin_settings | |
$plugin_description = 'This author didn\'t provide anything. Shame!' | |
FanniePlugin class
Plugins are collections of modules. Each collection should contain one module that subclasses 'Plugin'. This module provides meta-information about the plugin like settings and enable/disable hooks
|
static |
Check whether a given plugin is enabled
$plugin | string plugin name |
|
static |
Find the plugin containing a given file
$file | string filename |
COREPOS\Fannie\API\FanniePlugin::plugin_db_struct | ( | $db, | |
$struct_name, | |||
$db_name = "" |
|||
) |
COREPOS\Fannie\API\FanniePlugin::plugin_dir | ( | ) |
COREPOS\Fannie\API\FanniePlugin::plugin_disable | ( | ) |
COREPOS\Fannie\API\FanniePlugin::plugin_enable | ( | ) |
COREPOS\Fannie\API\FanniePlugin::plugin_url | ( | ) |
COREPOS\Fannie\API\FanniePlugin::pluginDir | ( | ) |
Get filesystem path for the plugin's directory
COREPOS\Fannie\API\FanniePlugin::pluginDisable | ( | ) |
Callback. Triggered when plugin is disabled
COREPOS\Fannie\API\FanniePlugin::pluginEnable | ( | ) |
Callback. Triggered when plugin is enabled
|
static |
Find potential class files in a given directory
$path | starting directory |
COREPOS\Fannie\API\FanniePlugin::pluginUrl | ( | ) |
Get a URL for the plugin's directory
COREPOS\Fannie\API\FanniePlugin::setting_change | ( | ) |
COREPOS\Fannie\API\FanniePlugin::settingChange | ( | ) |
Callback. Triggered when a setting is modified
COREPOS\Fannie\API\FanniePlugin::$plugin_settings |
Desired settings. These are automatically exposed on the 'Plugins' area of the install page and written to ini.php