ZenMagick 0.9.10


zenmagick.store.admin.installation.patches.sql\ZMConfigPatch
installation\patches\sql\ZMConfigPatch.php at line 30

Class ZMConfigPatch

ZMObject
└─ZMInstallationPatch
└─ZMSQLPatch
└─ZMConfigPatch

public class ZMConfigPatch
extends ZMSQLPatch

Patch to create ZenMagick config basics.

Author:
DerManoMann

Field Summary
mixed

$sqlFiles_

mixed

$sqlUndoFiles_

Method Summary
void

__construct(string id)

Create new instance.

boolean

isOpen()

Checks if this patch can still be applied.

boolean

patch(boolean force)

Execute this patch.

boolean

undo()

Revert the patch.

Methods inherited from zenmagick.store.admin.installation.patches\ZMSQLPatch
__construct, getGroupId, getPreconditionsMessage
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

Field Detail

installation\patches\sql\ZMConfigPatch.php at line 31

sqlFiles_

public mixed $sqlFiles_ = array(...)

installation\patches\sql\ZMConfigPatch.php at line 32

sqlUndoFiles_

public mixed $sqlUndoFiles_ = array(...)

Method Detail

installation\patches\sql\ZMConfigPatch.php at line 38

__construct

public void __construct(string id)

Create new instance.

Parameters:
id - Id of the patch.

installation\patches\sql\ZMConfigPatch.php at line 55

isOpen

public boolean isOpen()

Checks if this patch can still be applied.

Returns:
true if this patch can still be applied.

installation\patches\sql\ZMConfigPatch.php at line 66

patch

public boolean patch(boolean force)

Execute this patch.

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

installation\patches\sql\ZMConfigPatch.php at line 86

undo

public boolean undo()

Revert the patch.

Returns:
true if patching was successful, false if not.

ZenMagick 0.9.10