tasks/ext/zendguard/ZendGuardEncodeTask.php

Show: inherited
Table of Contents

\ZendGuardEncodeTask

Package: phing\tasks\ext\zendguard

Encodes files using Zeng Guard Encoder

Parent(s)
\MatchingTask < \Task < \ProjectComponent
Author
Petr Rybak  
Since
2.4.3  
Version
$Id: ZendGuardEncodeTask.php 1084 2011-05-06 09:55:25Z mrook $  

Properties

Propertyprotectedbool  $aspTags= 'false'

Turn ASP tag (“<%” ) recognition on/off. (default: off). On or off must be specified as an argument when using this option.

The default, when this option is not used in the command-line, is - off

Default valuefalseDetails
Type
bool
Propertyprotectedbool  $deleteSource= 'true'

Permanently deletes (see warning below) the original source files specified in the SourceInputPath and saves the encoded files in its place.

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

Default valuetrueDetails
Type
bool
Propertyprotected  $encodeCommand= ''
Details
Type
n/a
Propertyprotectedbool  $encodedOnly= 'false'

Force cooperation with other encoded files only. This option generates files that work exclusively with associated encoded files. Associated encoded files are those generated by the same company. Files that do not share the same encoded company association cannot call these files

Default valuefalseDetails
Type
bool
Propertyprotectedstring  $expires= 'null'

Make an encoded file to expire on the given date. Date is in yyyy-mm-dd format.

Default valuenullDetails
Type
string
Propertyprotected  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotectedbool  $forceEncode= 'false'

Allow encoding previously encoded files. (NOT recommended!)

Default valuefalseDetails
Type
bool
Propertyprotectedbool  $ignoreFileModes= 'false'

If true the ownership, permissions and timestamps of the encoded files won't be preserved.

Default valuefalseDetails
Type
bool
Propertyprotectedbool  $licenseProduct= 'false'

Enable licensing.

If enabled, productName must be defined.

Default valuefalseDetails
Type
bool
Propertyprotectedbool  $noHeader= 'false'

Disables the PHP-compatible header that is added to the top of every encoded file by default. Encoded files generated with this option will not display a meaningful error when loaded by PHP that doesn't have the Zend Optimizer properly installed.

Using this option saves approximately 1.5KB for every encoded file. Do not use it unless disk space constraints are critica

Default valuefalseDetails
Type
bool
Propertyprotectedint  $obfuscationLevel= '0'

Level of obfuscation. Defaults to 0 (no obfuscation).

Default value0Details
Type
int
Propertyprotectedint  $optMask= 'null'

Optimization mask. (default value: [+++++++]) opt_mask is an integer representing a bit-mask.

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

Default valuenullDetails
Type
int
Propertyprotectedstring  $privateKeyPath= 'null'

Path to private key for licensing

Default valuenullDetails
Type
string
Propertyprotectedstring  $productName= 'null'

Product name. Must be defined if licenseProduct or signProduct is set to 1

Default valuenullDetails
Type
string
Propertyprotectedstring  $prologFile= 'null'

Embed the information in the specified file into the header of the encoded file (overrides noHeader)

Default valuenullDetails
Type
string
Propertyprotectedstring  $renameSourceExt= 'null'

Move the original source file to <input_file>.<renameSourceExt> and save the encoded file in its place.

If specified deleteSource will be automatically disabled.

Default valuenullDetails
Type
string
Propertyprotectedbool  $shortTags= 'true'

Turns short PHP tag (“<?” ) recognition either on or off.

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

Default valuetrueDetails
Type
bool
Propertyprotectedbool  $signProduct= 'false'

Enable signing If enabled, productName must be defined.

Default valuefalseDetails
Type
bool
Propertyprotectedbool  $useCrypto= 'false'

If cryptography should be used to encode the source code

Default valuefalseDetails
Type
bool
Propertyprotectedstring  $zendEncoderPath= 'null'

Path to the zend encoder binary

Default valuenullDetails
Type
string

Methods

methodpublic__construct( ) : void

methodpublicappendSelector( ) : void

methodpubliccreateAnd( ) : void

methodpubliccreateContains( ) : void

methodpubliccreateCustom( ) : void

methodpubliccreateDate( ) : void

methodpubliccreateDepend( ) : void

methodpubliccreateDepth( ) : void

methodpubliccreateExclude( ) : void

methodpubliccreateExcludesFile( ) : void

methodpubliccreateFileSet( ) : \FileSet

Add a new fileset.

Returns
Type Description
\FileSet
methodpubliccreateFilename( ) : void

methodpubliccreateInclude( ) : void

methodpubliccreateIncludesFile( ) : void

methodpubliccreateMajority( ) : void

methodpubliccreateNone( ) : void

methodpubliccreateNot( ) : void

methodpubliccreateOr( ) : void

methodpubliccreatePatternSet( ) : void

methodpubliccreatePresent( ) : void

methodpubliccreateSelector( ) : void

methodpubliccreateSize( ) : void

methodprotectedencodeFile( string $filePath ) : void

Encodes a file using currently defined Zend Guard settings

Parameters
Name Type Description
$filePath string

Path to the encoded file

methodpublicgetDescription( ) : void

methodprotectedgetDirectoryScanner( ) : void

methodprotectedgetImplicitFileSet( ) : void
final

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetSelectors( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublichasSelectors( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Do the work

Throws
Exception Description
\BuildException
methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodprotectedprepareEncoderCommand( ) : void

Prepares the main part of the command that will be used to encode the given file(s).

methodpublicselectorCount( ) : void

methodpublicselectorElements( ) : void

methodpublicsetAspTags(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetCaseSensitive( ) : void

methodpublicsetDefaultexcludes( ) : void

methodpublicsetDeleteSource(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetDescription( ) : void

methodpublicsetEncodedOnly(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetExcludes( ) : void

methodpublicsetExcludesfile( ) : void

methodpublicsetExpires(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetFollowSymlinks( ) : void

methodpublicsetForceEncode(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetIgnoreFileModes(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetIncludes( ) : void

methodpublicsetIncludesfile( ) : void

methodpublicsetLicenseProduct(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetLocation( ) : void

methodpublicsetNoHeader(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetObfuscationLevel(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetOptMask(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetOwningTarget( ) : void

methodpublicsetPrivateKeyPath(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetProductName(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetProject( ) : void

methodpublicsetPrologFile(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetRenameSourceExt(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetShortTags(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetSignProduct(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetUseCrypto(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetZendEncoderPath(  $value ) : void

TASK PROPERTIES SETTERS

Parameters
Name Type Description
$value
methodprotectedverifyConfiguration( ) : void

Verifies that the configuration is correct

Throws
Exception Description
\BuildException

\ZendGuardFileSet

Package: phing\tasks\ext\zendguard

This is a FileSet with the to specify permissions.

Permissions are currently not implemented by PEAR Archive_Tar, but hopefully they will be in the future.

Parent(s)
\FileSet < \AbstractFileSet < \DataType < \ProjectComponent

Properties

Propertyprivate  $files= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublic__clone( ) : void

methodpublic__construct( ) : void

methodpublicappendSelector( ) : void

methodpubliccircularReference( ) : void

methodpubliccreateAnd( ) : void

methodpubliccreateContains( ) : void

methodpubliccreateContainsRegexp( ) : void

methodpubliccreateCustom( ) : void

methodpubliccreateDate( ) : void

methodpubliccreateDepend( ) : void

methodpubliccreateDepth( ) : void

methodpubliccreateExclude( ) : void

methodpubliccreateExcludesFile( ) : void

methodpubliccreateFilename( ) : void

methodpubliccreateInclude( ) : void

methodpubliccreateIncludesFile( ) : void

methodpubliccreateMajority( ) : void

methodpubliccreateNone( ) : void

methodpubliccreateNot( ) : void

methodpubliccreateOr( ) : void

methodpubliccreatePatternSet( ) : void

methodpubliccreatePresent( ) : void

methodpubliccreateSelector( ) : void

methodpubliccreateSize( ) : void

methodpubliccreateType( ) : void

methodpublicdieOnCircularReference( ) : void

methodpublicgetCheckedRef( ) : void

methodpublicgetDescription( ) : void

methodpublicgetDir( ) : void

methodpublicgetDirectoryScanner( ) : void

methodpublicgetFiles(  $p,  $includeEmpty = true ) : void

Get a list of files and directories specified in the fileset.

@return array a list of file and directory names, relative to the baseDir for the project.

Parameters
Name Type Description
$p
$includeEmpty
methodpublicgetProject( ) : void

methodpublicgetRef( ) : void

methodpublicgetSelectors( ) : void

methodpublichasPatterns( ) : void

methodpublichasSelectors( ) : void

methodpublicisReference( ) : void

methodpubliclog( ) : void

methodpublicnoChildrenAllowed( ) : void

methodpublicparsingComplete( ) : void

methodpublicselectorCount( ) : void

methodpublicselectorElements( ) : void

methodpublicsetCaseSensitive( ) : void

methodpublicsetDefaultexcludes( ) : void

methodpublicsetDescription( ) : void

methodpublicsetDir( ) : void

methodpublicsetExcludes( ) : void

methodpublicsetExcludesfile( ) : void

methodpublicsetExpandSymbolicLinks( ) : void

methodpublicsetIncludes( ) : void

methodpublicsetIncludesfile( ) : void

methodpublicsetProject( ) : void

methodpublicsetRefid( ) : void

methodprotectedsetupDirectoryScanner( ) : void

methodpublictooManyAttributes( ) : void

Documentation was generated by DocBlox 0.17.1.