ZMObject
└─ZMInstallationPatch
└─ZMFilePatch
public class ZMFilePatch
extends ZMInstallationPatch
| Fields inherited from zenmagick.store.admin.installation\ZMInstallationPatch | |
|---|---|
| id_, messages_ | |
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(string id) Create new patch. |
| array | getFileLines(string file) Load the given file line by line. |
| string | Get the patch group id. |
| boolean | isFilesFktOpen(array fktFilesCfg) isOpen() check for function renaming. |
| boolean | patchFilesFkt(array fktFilesCfg) Execute function renaming patch. |
| boolean | putFileLines(string file, array lines) Write the given lines to file. |
| string | readFile(string file) Read the given file. |
| boolean | undoFilesFkt(array fktFilesCfg) Undo function renaming patch. |
| boolean | writeFile(string file, string contents) Write the given contents to file. |
| 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 patch.
public array getFileLines(string file)
Load the given file line by line.
null.public string getGroupId()
Get the patch group id.
public boolean isFilesFktOpen(array fktFilesCfg)
isOpen() check for function renaming.
true if any patches are open.public boolean patchFilesFkt(array fktFilesCfg)
Execute function renaming patch.
true if patching was successful, false if not.public boolean putFileLines(string file, array lines)
Write the given lines to file.
true if successful, false if not.public string readFile(string file)
Read the given file.
null.public boolean undoFilesFkt(array fktFilesCfg)
Undo function renaming patch.
true if patching was successful, false if not.public boolean writeFile(string file, string contents)
Write the given contents to file.
true if successful, false if not.
Generic file patch.