ZenMagick 0.9.8


org.zenmagick.store.services.plugins.types.ZMBoxPlugin
\store\services\plugins\types\ZMBoxPlugin.php at line 36

Class ZMBoxPlugin

ZMObject
└─ZMPlugin
└─Plugin
└─ZMBoxPlugin

public class ZMBoxPlugin
extends Plugin

(Side-)box plugin.

Author:
DerManoMann
Version:
$Id: ZMBoxPlugin.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.store.services.plugins.Plugin
CONTEXT_ADMIN, CONTEXT_STOREFRONT, KEY_ENABLED, KEY_PREFIX, KEY_SORT_ORDER
Fields inherited from org.zenmagick.core.services.plugins.ZMPlugin
LP_ALL, LP_FOLDER, LP_NONE, LP_PLUGIN
Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMBoxPlugin(string title, string description, string version)

Create new plugin.

Method Summary
void

createBoxes()

Create zen-cart dummy sideboxes plus default boxes for the default theme.

string

getBoxContents(mixed id)

Get the contents for the given box id.

int

getBoxIndex(mixed id)

Get the index from the given box id.

array

getBoxNames()

Get the ids/names of the boxes supported by this plugin.

void

install()

Install this plugin.

void

remove(boolean keepSettings)

Remove this plugin.

void

removeBoxes()

Remove zen-cart dummy sideboxes plus default boxes for the default theme.

Methods inherited from org.zenmagick.store.services.plugins.Plugin
addConfigValue, addMenuItem, get, getConfigPath, getConfigValues, getGlobal, getMessages, getSortOrder, init, install, isEnabled, isInstalled, pluginURL, remove, set, setEnabled, setGroup, setPreferredSortOrder, setSortOrder
Methods inherited from org.zenmagick.core.services.plugins.ZMPlugin
getContext, getDescription, getGroup, getId, getLoaderPolicy, getName, getPluginDirectory, getVersion, init, isEnabled, setContext, setDescription, setEnabled, setGroup, setId, setLoaderPolicy, setName, setPluginDirectory, setVersion
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\services\plugins\types\ZMBoxPlugin.php at line 45

ZMBoxPlugin

public ZMBoxPlugin(string title, string description, string version)

Create new plugin.

Parameters:
title - The title.
description - The description.
version - The version.

Method Detail

\store\services\plugins\types\ZMBoxPlugin.php at line 78

createBoxes

public void createBoxes()

Create zen-cart dummy sideboxes plus default boxes for the default theme.


\store\services\plugins\types\ZMBoxPlugin.php at line 141

getBoxContents

public string getBoxContents(mixed id)

Get the contents for the given box id.

Returns:
Contents for the box implementation.

\store\services\plugins\types\ZMBoxPlugin.php at line 152

getBoxIndex

public int getBoxIndex(mixed id)

Get the index from the given box id.

This is assuming that the index is the suffix, separated by '_'.

Returns:
The index or 0.

\store\services\plugins\types\ZMBoxPlugin.php at line 132

getBoxNames

public array getBoxNames()

Get the ids/names of the boxes supported by this plugin.

Returns:
List of box names.

\store\services\plugins\types\ZMBoxPlugin.php at line 60

install

public void install()

Install this plugin.


\store\services\plugins\types\ZMBoxPlugin.php at line 69

remove

public void remove(boolean keepSettings)

Remove this plugin.

Parameters:
keepSettings - If set to true, the settings will not be removed; default is false.

\store\services\plugins\types\ZMBoxPlugin.php at line 107

removeBoxes

public void removeBoxes()

Remove zen-cart dummy sideboxes plus default boxes for the default theme.


ZenMagick 0.9.8