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: aacbd9ea1b3f9e13178cea0f5ff625f921076a32 $ |
package |
phing.tasks.ext.zendguard |
since | 2.4.3 |
__construct()
appendSelector(\FileSelector $selector) : void
createAnd() : \AndSelector
createContains() : \ContainsSelector
createCustom() : \ExtendSelector
createDate() : \DateSelector
createDepend() : \DependSelector
createDepth() : \DepthSelector
createExclude() : \PatternSetNameEntry
createExcludesFile() : \PatternSetNameEntry
createFilename() : \FilenameSelector
createInclude() : \PatternSetNameEntry
createIncludesFile() : \PatternSetNameEntry
createMajority() : \MajoritySelector
createNone() : \NoneSelector
createNot() : \NotSelector
createOr() : \OrSelector
createPresent() : \PresentSelector
createReadable() : \ReadableSelector
createSelector() : \SelectSelector
createSize() : \SizeSelector
createWritable() : \WritableSelector
encodeFile(string $filePath) : boolean
throws |
---|
string
Path to the encoded file
boolean
getDescription() : string
string
The text description of the task
getDirectoryScanner(\PhingFile $baseDir) : \DirectoryScanner
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getSelectors(\Project $p) : array
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
hasSelectors() : boolean
boolean
Whether any selectors are in this container
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
throws | |
---|---|
prepareEncoderCommand()
selectorCount() : integer
integer
The number of selectors in this container
selectorElements() : \an
\an
enumerator that goes through each of the selectors
setAspTags( $value)
setCaseSensitive(boolean $isCaseSensitive) : void
boolean
"true"|"on"|"yes" if file system is case sensitive, "false"|"off"|"no" when not.
setDefaultexcludes(boolean $useDefaultExcludes)
boolean
"true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.
setDeleteSource( $value)
setDescription(string $desc)
string
The text describing the task
setEncodedOnly( $value)
setExcludes(string $excludes)
string
the string containing the exclude patterns
setExcludesfile(\PhingFile $excludesfile) : void
setExpires( $value)
setFollowSymlinks(boolean $followSymlinks) : void
boolean
whether or not symbolic links should be followed
setForceEncode( $value)
setIgnoreFileModes( $value)
setIncludes(string $includes) : void
string
the string containing the include patterns
setIncludesfile(\PhingFile $includesfile) : void
setLicenseProduct( $value)
setLocation(\Location $location)
setNoHeader( $value)
setObfuscationLevel( $value)
setOptMask( $value)
setOwningTarget(\Target $target)
setPrivateKeyPath( $value)
setProductName( $value)
setProject(\Project $project) : void
setPrologFile( $value)
setRenameSourceExt( $value)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setShortTags( $value)
setSignProduct( $value)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
setUseCrypto( $value)
setZendEncoderPath( $value)
verifyConfiguration()
throws | |
---|---|
filesets :
encodeCommand :
deleteSource : boolean
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 |
---|
boolean
renameSourceExt : string
If specified deleteSource will be automatically disabled.
var |
---|
string
shortTags : boolean
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 |
---|
boolean
aspTags : boolean
The default, when this option is not used in the command-line, is - off
var |
---|
boolean
noHeader : boolean
Using this option saves approximately 1.5KB for every encoded file. Do not use it unless disk space constraints are critica
var |
---|
boolean
useCrypto : boolean
var |
---|
boolean
encodedOnly : boolean
var |
---|
boolean
forceEncode : boolean
var |
---|
boolean
expires : string
var |
---|
string
obfuscationLevel : integer
var |
---|
integer
optMask : integer
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 |
---|
integer
zendEncoderPath : string
var |
---|
string
privateKeyPath : string
var |
---|
string
licenseProduct : boolean
If enabled, productName must be defined.
var |
---|
boolean
ignoreFileModes : boolean
var |
---|
boolean
signProduct : boolean
var |
---|
boolean
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