Encodes files using Zeng Guard Encoder
This is very closely based on the ANT class of the same name.
author |
Petr Rybak petr@rynawe.net |
---|---|
version |
$Id: 10b4a94d7b4b5fd0c08de77c0d9fda898009dbde $ |
package |
phing.tasks.ext.zendguard |
since | 2.4.3 |
setZendEncoderPath($value)
setPrivateKeyPath($value)
setShortTags($value)
setAspTags($value)
setDeleteSource($value)
setUseCrypto($value)
setObfuscationLevel($value)
setLicenseProduct($value)
setPrologFile($value)
setSignProduct($value)
setForceEncode($value)
setEncodedOnly($value)
setIgnoreFileModes($value)
setExpires($value)
setProductName($value)
setOptMask($value)
setRenameSourceExt($value)
setNoHeader($value)
verifyConfiguration()
throws |
---|
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
prepareEncoderCommand()
encodeFile(string $filePath)
string
Path to the encoded file
__construct()
setProject(\Project $project)
createInclude() : \PatternSetNameEntry
createIncludesFile() : \PatternSetNameEntry
createExclude() : \PatternSetNameEntry
createExcludesFile() : \PatternSetNameEntry
setIncludes(string $includes) : void
string
the string containing the include patterns
setExcludes(string $excludes)
string
the string containing the exclude patterns
setDefaultexcludes(boolean $useDefaultExcludes)
boolean
"true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
getDirectoryScanner(\PhingFile $baseDir) : \DirectoryScanner
setIncludesfile(\PhingFile $includesfile) : void
setExcludesfile(\PhingFile $excludesfile) : void
setCaseSensitive(boolean $isCaseSensitive) : void
boolean
"true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not.
setFollowSymlinks(boolean $followSymlinks) : void
boolean
whether or not symbolic links should be followed
hasSelectors() : boolean
boolean
Whether any selectors are in this container
selectorCount() : int
int
The number of selectors in this container
getSelectors(\Project $p) : array
selectorElements() : \an
\an
enumerator that goes through each of the selectors
appendSelector(\FileSelector $selector) : void
createSelector() : \SelectSelector
createAnd() : \AndSelector
createOr() : void
createNot() : \NotSelector
createNone() : \NoneSelector
createMajority() : \MajoritySelector
createDate() : \DateSelector
createSize() : \SizeSelector
createFilename() : \FilenameSelector
createCustom() : \ExtendSelector
createContains() : \ContainsSelector
createPresent() : \PresentSelector
createDepth() : \DepthSelector
createDepend() : \DependSelector
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The text description of the task
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws |
---|
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
getProject() : \Project
filesets :
encodeCommand :
deleteSource : bool
This option has no option parameter. When this option is use, do not use the output_file parameter.
Warning: To avoid permanent loss of non-encoded scripts, make a backup. Deleted files cannot be restored or recovered and will be permanently deleted with this option. If you are unsure about deleting the source files, use the ––rename-source option instead
var |
---|
bool
renameSourceExt : string
If specified deleteSource will be automatically disabled.
var |
---|
string
shortTags : bool
On or off must be specified as an argument when using this option. The default, when option is not used in the command-line, is - on
var |
---|
bool
aspTags : bool
The default, when this option is not used in the command-line, is - off
var |
---|
bool
noHeader : bool
Using this option saves approximately 1.5KB for every encoded file. Do not use it unless disk space constraints are critica
var |
---|
bool
useCrypto : bool
var |
---|
bool
encodedOnly : bool
var |
---|
bool
forceEncode : bool
var |
---|
bool
expires : string
var |
---|
string
obfuscationLevel : int
var |
---|
int
optMask : int
The default value enables all of the optimization passes. Each optimization pass of the Zend Optimizer can be turned on or off based on the mask entered
var |
---|
int
zendEncoderPath : string
var |
---|
string
privateKeyPath : string
var |
---|
string
licenseProduct : bool
If enabled, productName must be defined.
var |
---|
bool
ignoreFileModes : bool
var |
---|
bool
signProduct : bool
var |
---|
bool
productName : string
var |
---|
string
prologFile : string
var |
---|
string
useDefaultExcludes : boolean
var |
---|
boolean
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project