Overview

Classes

  • Packager_Common_Base
  • Packager_Phar
  • Packager_Phar_ResultCompleter
  • Packager_Php
  • Packager_Php_Base
  • Packager_Php_Completer
  • Packager_Php_Scripts_Completer
  • Packager_Php_Scripts_Dependencies
  • Packager_Php_Scripts_Order
  • Packager_Php_Scripts_Replacer
  • Packager_Php_Wrapper
  • Packager_Php_Wrapper_DirectoryIterator
  • Packager_Php_Wrapper_SplFileInfo
  • Overview
  • Class
  • Tree

Class Packager_Phar

Packager_Common_Base
Extended by Packager_Phar_ResultCompleter
Extended by Packager_Phar
Located at packager/src/Packager/Phar.php
Methods summary
public static Packager_Phar
# Create( array $cfg = array() )

Create singleton instance with configuration

Create singleton instance with configuration

Parameters

$cfg

Returns

Packager_Phar

Overrides

Packager_Common_Base::Create()
public static Packager_Phar
# Get( array $cfg = array() )

Get instance and merge configuration or create singleton instance with configuration

Get instance and merge configuration or create singleton instance with configuration

Parameters

$cfg

Returns

Packager_Phar

Overrides

Packager_Common_Base::Get()
public Packager_Phar
# SetSourceDir( string $fullOrRelativePath = '' )

Set application sources directory

Set application sources directory

Parameters

$fullOrRelativePath

Returns

Packager_Phar

Overrides

Packager_Common_Base::SetSourceDir()
public Packager_Phar
# SetReleaseFile( string $releaseFileFullPath = '' )

Set compilation result file, if exist, it will be overwriten

Set compilation result file, if exist, it will be overwriten

Parameters

$releaseFileFullPath

Returns

Packager_Phar

Overrides

Packager_Common_Base::SetReleaseFile()
public Packager_Phar
# SetExcludePatterns( array|string $excludePatterns = array() )

Set preg_replace() patterns array or single string about which files or folders will be excluded from result file. Function replace all previous configuration records.

Set preg_replace() patterns array or single string about which files or folders will be excluded from result file. Function replace all previous configuration records.

Parameters

$excludePatterns

Returns

Packager_Phar

Overrides

Packager_Common_Base::SetExcludePatterns()
public Packager_Phar
# AddExcludePatterns( array|string $excludePatterns = array() )

Add preg_replace() patterns array or single string about which files or folders will be excluded from result file.

Add preg_replace() patterns array or single string about which files or folders will be excluded from result file.

Parameters

$excludePatterns

Returns

Packager_Phar

Overrides

Packager_Common_Base::AddExcludePatterns()
public Packager_Php
# SetPatternReplacements( array $patternReplacements = array() )

Set patterns/replacements array about what will be replaced in *.php and *.phtml files by preg_replace(pattern, replacement, source) before possible minification process. Function replace all previous configuration records.

Set patterns/replacements array about what will be replaced in *.php and *.phtml files by preg_replace(pattern, replacement, source) before possible minification process. Function replace all previous configuration records.

Parameters

$patternReplacements

Returns

Packager_Php

Overrides

Packager_Common_Base::SetPatternReplacements()
public Packager_Php
# AddPatternReplacements( array $patternReplacements = array() )

Add patterns/replacements array about what will be replaced in *.php and *.phtml files by preg_replace(pattern, replacement, source) before possible minification process.

Add patterns/replacements array about what will be replaced in *.php and *.phtml files by preg_replace(pattern, replacement, source) before possible minification process.

Parameters

$patternReplacements

Returns

Packager_Php

Overrides

Packager_Common_Base::AddPatternReplacements()
public Packager_Phar
# SetStringReplacements( array $stringReplacements = array() )

Set str_replace() key/value array about what will be simply replaced in result file. Function replace all previous configuration records.

Set str_replace() key/value array about what will be simply replaced in result file. Function replace all previous configuration records.

Parameters

$stringReplacements

Returns

Packager_Phar

Overrides

Packager_Common_Base::SetStringReplacements()
public Packager_Phar
# AddStringReplacements( array $stringReplacements = array() )

Add str_replace() key/value array about what will be simply replaced in result file.

Add str_replace() key/value array about what will be simply replaced in result file.

Parameters

$stringReplacements

Returns

Packager_Phar

Overrides

Packager_Common_Base::AddStringReplacements()
public Packager_Phar
# SetMinifyTemplates( string $minifyTemplates = TRUE )

Set boolean if *.phtml templates will be minimized before saving into result file

Set boolean if *.phtml templates will be minimized before saving into result file

Parameters

$minifyTemplates

Returns

Packager_Phar

Overrides

Packager_Common_Base::SetMinifyTemplates()
public Packager_Phar
# SetMinifyPhp( string $minifyPhp = TRUE )

Set boolean if *.php scripts will be minimized before saving into result file

Set boolean if *.php scripts will be minimized before saving into result file

Parameters

$minifyPhp

Returns

Packager_Phar

Overrides

Packager_Common_Base::SetMinifyPhp()
public Packager_Phar
# MergeConfiguration( array $cfg = array() )

Merge multilevel configuration array with previously initialized values. New values sended into this function will be used preferred.

Merge multilevel configuration array with previously initialized values. New values sended into this function will be used preferred.

Parameters

$cfg

Returns

Packager_Phar

Overrides

Packager_Common_Base::MergeConfiguration()
public Packager_Phar
# Run( array $cfg = array() )

Run PHAR compilation process, print output to CLI or browser

Run PHAR compilation process, print output to CLI or browser

Parameters

$cfg

Returns

Packager_Phar

Overrides

Packager_Common_Base::Run()
Methods inherited from Packager_Phar_ResultCompleter
completingJob(), mainJob(), notify(), renameJob()
Methods inherited from Packager_Common_Base
AddIncludeFirst(), AddIncludeLast(), AddIncludePatterns(), ErrorHandler(), ExceptionHandler(), KeepPhpFunctions(), ReplacePhpFunctions(), SetAutoloadingOrderDetection(), SetIncludeFirst(), SetIncludeLast(), SetIncludePatterns(), SetPhpFileSystemMode(), SetRemovePhpDocComments(), ShutdownHandler(), __construct(), completeAllFiles(), completeJobAndParams(), decodeJson(), excludeFilesByCfg(), executeJobAndGetResult(), sendJsonResultAndExit(), sendResult(), shrinkPhpCode(), shrinkPhpCodeReducePhpDocComment()
Properties inherited from Packager_Common_Base
$autoLoadedFiles, $cfg, $cliScriptName, $compilationType, $errorHandlerData, $errorResponse, $exceptionsMessages, $exceptionsTraces, $fileTypesStoringTypes, $files, $includedFilesCountTillNow, $instance, $templatesExtensions
MvcCore API documentation generated by ApiGen