ZMObject
└─ZMInstallationPatch
└─ZMFilePatch
└─ZMSideboxDummyPatch
public class ZMSideboxDummyPatch
extends ZMFilePatch
| Method Summary | |
|---|---|
| void | __construct(string id) Create new instance. |
| string | Get the patch group id. |
| protected void | Builds a list of all ZenMagick theme sideboxes that do not have zen-cart sidebox dummies. |
| string | Get the precondition message. |
| boolean | isOpen() Checks if this patch can still be applied. |
| boolean | isReady() Checks if this patch is ready to be applied. |
| boolean | patch(boolean force) Execute this patch. |
| boolean | undo() Revert the patch. |
| Methods inherited from zenmagick.store.admin.installation.patches\ZMFilePatch | |
|---|---|
| __construct, getFileLines, getGroupId, isFilesFktOpen, patchFilesFkt, putFileLines, readFile, undoFilesFkt, writeFile | |
| Methods inherited from zenmagick.store.admin.installation\ZMInstallationPatch | |
|---|---|
| __construct, canUndo, dependsOn, getGroupId, getId, getMessages, getPreconditionsMessage, isOpen, isReady, patch, undo | |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct(string id)
Create new instance.
public string getGroupId()
Get the patch group id.
protected void getMissingZCSideboxes()
Builds a list of all ZenMagick theme sideboxes that do not have zen-cart sidebox dummies. return array List of sideboxes that need zen-cart dummies.
public string getPreconditionsMessage()
Get the precondition message.
This will return an empty string when isReady() returns true.
public boolean isOpen()
Checks if this patch can still be applied.
true if this patch can still be applied.public boolean isReady()
Checks if this patch is ready to be applied.
true if this patch is ready and all preconditions are met.public boolean patch(boolean force)
Execute this patch.
true it will force patching even if disabled as per settings.true if patching was successful, false if not.public boolean undo()
Revert the patch.
true if patching was successful, false if not.
Patch to create dummy sidebox files for zen-cart.