ZMObject
└─ZMInstallationPatch
public class ZMInstallationPatch
extends ZMObject
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(string id) Create new patch. |
| boolean | canUndo() Check if this patch supports undo. |
| array | Returns a list of other patches it depends on. |
| string | Get the patch group id. |
| string | getId() Get the patch id. |
| array | Get optional installation messages. |
| 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 org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public mixed $id_ = null
public mixed $messages_ = null
public void __construct(string id)
Create new patch.
public boolean canUndo()
Check if this patch supports undo.
true if undo is supported, false if not.public array dependsOn()
Returns a list of other patches it depends on.
public string getGroupId()
Get the patch group id.
public string getId()
Get the patch id.
public array getMessages()
Get optional installation messages.
ZMMessage instances.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.
Single installation patch.