ZenMagick 0.9.10


zenmagick.store.admin.installation\ZMInstallationPatcher
installation\ZMInstallationPatcher.php at line 30

Class ZMInstallationPatcher

ZMObject
└─ZMInstallationPatcher

public class ZMInstallationPatcher
extends ZMObject

Provides support for all file patching of zen-cart files ZenMagick might need.

Author:
DerManoMann

Field Summary
mixed

$patches_

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

ZMInstallationPatch

getPatchForId(string id)

Get the patch for the given id.

array

getPatches(string groupId)

Get all patches.

boolean

isPatchesOpen(string groupId)

Returns true if any patches left to run.

boolean

patch(boolean force)

Execute all open patches.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Field Detail

installation\ZMInstallationPatcher.php at line 31

patches_

public mixed $patches_ = false

Method Detail

installation\ZMInstallationPatcher.php at line 37

__construct

public void __construct()

Create new instance.


installation\ZMInstallationPatcher.php at line 104

getPatchForId

public ZMInstallationPatch getPatchForId(string id)

Get the patch for the given id.

Parameters:
id - The patch id.
Returns:
The corresponding installation patch or null.

installation\ZMInstallationPatcher.php at line 114

getPatches

public array getPatches(string groupId)

Get all patches.

Parameters:
groupId - Optional group id.
Returns:
A list of ZMInstallationPatch instances.

installation\ZMInstallationPatcher.php at line 69

isPatchesOpen

public boolean isPatchesOpen(string groupId)

Returns true if any patches left to run.

Parameters:
groupId - Optional group id.
Returns:
true if there are any patches left that could be run.

installation\ZMInstallationPatcher.php at line 89

patch

public boolean patch(boolean force)

Execute all open patches.

Parameters:
force - If set to true it will force patching even if it is disabled as per settings.
Returns:
true if all patching was successful, false if not.

ZenMagick 0.9.10