ZenMagick 0.9.10


zenmagick.store.shared.service\Plugins
services\plugins\Plugins.php at line 34

Class Plugins

ZMObject
└─ZMPlugins
└─Plugins

public class Plugins
extends ZMPlugins

Plugins.

The plugin type is controlled by the base directory within the plugins directory. Please note that even though it is valid to create payment, shipping and order_total directories/plugins, zen-cart will not (yet) recognize them as such.

Author:
DerManoMann

Fields inherited from org.zenmagick.core.services.plugins\ZMPlugins
pluginBaseDir_, pluginStatus_, plugins_
Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

protected integer

comparePlugins(ZMPlugin a, ZMPlugin b)

{@inheritDoc}

static void

instance()

Get instance.

protected array

loadStatus()

{@inheritDoc}

Methods inherited from org.zenmagick.core.services.plugins\ZMPlugins
__construct, comparePlugins, getAllPlugins, getGroups, getPluginForId, getPluginIdsForGroup, getPluginsForGroup, initPluginForId, initPluginsForGroups, initPluginsForId, instance, loadStatus, needsInit
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

services\plugins\Plugins.php at line 39

__construct

public void __construct()

Create new instance.


services\plugins\Plugins.php at line 73

comparePlugins

protected integer comparePlugins(ZMPlugin a, ZMPlugin b)

Compare plugins.

Parameters:
a - First plugin.
b - Second plugin.
Returns:
Value less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.

services\plugins\Plugins.php at line 53

instance

public static void instance()

Get instance.


services\plugins\Plugins.php at line 61

loadStatus

protected array loadStatus()

Load the plugin status data.

The default implementation is to look at settings in the form zenmagick.core.plugins.[id].enabled.

Returns:
The status of all plugins.

ZenMagick 0.9.10