ZenMagick 0.9.10


zenmagick.store.admin.utils\ZMCoreCompressor
utils\ZMCoreCompressor.php at line 30

Class ZMCoreCompressor

ZMPhpPackagePacker
└─ZMCoreCompressor

public class ZMCoreCompressor
extends ZMPhpPackagePacker

Compress lib/core into a single file 'core.php'.

Author:
DerManoMann

Fields inherited from org.zenmagick.core.utils.packer\ZMPhpPackagePacker
outputFilename_, rootFolder_, tempFolder_, treeMap_
Method Summary
void

__construct(string root, string out, string temp)

Create new instance.

void

disable()

Disable / remove the core.php file, effectively disabling the use of it.

array

getErrors()

Get errors.

protected array

getFileList()

{@inheritDoc}

boolean

hasErrors()

Check for errors.

boolean

isEnabled()

check if enabled.

Methods inherited from org.zenmagick.core.utils.packer\ZMPhpPackagePacker
__construct, clean, compressFiles, dropInclude, getFileList, getPreResolved, ignoreFile, packFiles, patchFile, prepareFiles, setDebug, setResolveInheritance, setTemp

Method Detail

utils\ZMCoreCompressor.php at line 35

__construct

public void __construct(string root, string out, string temp)

Create new instance.

Parameters:
root - The root directory to pack; default is null.
out - The [full] output filename; default is null.
temp - A temp folder for transient files and folders; default is null.

utils\ZMCoreCompressor.php at line 45

disable

public void disable()

Disable / remove the core.php file, effectively disabling the use of it.


utils\ZMCoreCompressor.php at line 63

getErrors

public array getErrors()

Get errors.

Returns:
List of text messages.

utils\ZMCoreCompressor.php at line 79

getFileList

protected array getFileList()

Get a list of all files to process.

Returns:
A list of file names.

utils\ZMCoreCompressor.php at line 72

hasErrors

public boolean hasErrors()

Check for errors.

Returns:
true if errors exist.

utils\ZMCoreCompressor.php at line 54

isEnabled

public boolean isEnabled()

check if enabled.

Returns:
true if core.php exists, false if not.

ZenMagick 0.9.10