Overview

Classes

  • Packager_Common_Base
  • Packager_Common_StaticCopies
  • 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

Exceptions

  • Packager_Php_Scripts_Throwable
  • Overview
  • Class
  • Tree
  • Todo
  • Deprecated
  • Download

Class Packager_Common_Base

Direct known subclasses

Packager_Common_StaticCopies

Indirect known subclasses

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
Located at src/Packager/Common/Base.php
Methods summary
public
# __construct( $cfg = [] )
public static
# Create( $cfg = [] )
public static
# Get( $cfg = [] )
public
# SetSourceDir( $fullOrRelativePath = '' )
public
# SetReleaseDir( $fullOrRelativePath = '' )
public
# SetReleaseFileName( $releaseFileName = '/index.php' )
public
# SetExcludePatterns( $excludePatterns = [] )
public
# AddExcludePatterns( $excludePatterns = [] )
public
# SetIncludePatterns( $includePatterns = [] )
public
# AddIncludePatterns( $includePatterns = [] )
public
# SetPatternReplacements( $patternReplacements = [] )
public
# AddPatternReplacements( $patternReplacements = [] )
public
# SetStringReplacements( $stringReplacements = [] )
public
# AddStringReplacements( $stringReplacements = [] )
public
# SetMinifyTemplates( $minifyTemplates = TRUE )
public
# SetMinifyPhp( $minifyPhp = TRUE )
public
# SetKeepPhpDocComments( $keepPhpDocComments = [] )
public
# SetIncludeFirst( $includeFirst = [] )
public
# AddIncludeFirst( $includeFirst = [], $mode = 'append' )
public
# SetIncludeLast( $includeLast = [] )
public
# AddIncludeLast( $includeLast = [], $mode = 'append' )
public
# SetPhpFileSystemMode( $fsMode = 'PHP_PRESERVE_HDD' )
public
# SetAutoloadingOrderDetection( $enabled = TRUE )
public
# ReplacePhpFunctions( )
public
# KeepPhpFunctions( )
public
# SetStaticCopies( $staticCopies = [/* '/from-dir' => '/to-dir', '/filename', '/dirname' */] )
public
# MergeConfiguration( $cfg = [] )
public
# PreRun( )
public
# PrintFilesToPack( )
protected static
# decodeJson( & $cUrlContentStr )
public static
# ErrorHandler( $severity = NULL, $message = NULL, $file = NULL, $line = NULL, $context = NULL )
public static
# ExceptionHandler( $exception = NULL, $exit = TRUE )
public static
# ShutdownHandler( )
protected
# shrinkPhpCode( & $code = '' )
protected
# shrinkPhpCodeReducePhpDocComment( $code )
protected
# completeJobAndParams( )
protected
# executeJobAndGetResult( $job = '', $arguments = [], $resultType = 'json' )
protected
# sendJsonResultAndExit( $jsonData )
protected
# completeAllFiles( )
protected
# excludeFilesByCfg( & $allFiles )
protected
# encodeFilesToUtf8( & $allFiles )
protected
# sendResult( $title, $content, $type = '' )
private
# _checkCommonConfiguration( )
private
# _convertFilecontentToUtf8Automatically( & $fileInfo )
private
# _processGetRequest( $url )
private
# _sendResultRenderErrorsContentItem( $outputType, $item )
private
# _changeCurrentWorkingDirectoryToProjectRoot( )
private
# _setUpStrictExceptionsMode( )
Properties summary
protected $cfg
#
protected array $files
# []
protected $cliScriptName
#
protected string $compilationType
# ''
protected array $exceptionsMessages
# []
protected array $exceptionsTraces
# []
protected integer $includedFilesCountTillNow
# 0
protected array $errorHandlerData
# []
protected array $errorResponse
# []
protected array $autoLoadedFiles
# []
protected static array $templatesExtensions
# ['phtml']
protected static array $fileTypesStoringTypes
# [ 'gzip' => [ 'css', 'htc', 'js', 'txt', 'svg' ], 'binary' => [ 'ico', 'gif', 'png', 'jpg', 'jpeg', 'zip', 'ttf', 'eot', 'otf', 'woff', 'woff2', ], 'base64' => [ // 'ini', ], 'template' => [ 'phtml', ], 'text' => [ 'ini', 'htm', 'html', 'xml', 'xsd', 'csv', ], ]
protected static $instance
#
private static array $_cfgDefault
# [ 'sourcesDir' => '', 'releaseDir' => '', 'releaseFileName' => '/index.php', 'staticCopies' => [], 'excludePatterns' => [], 'includePatterns' => [], 'stringReplacements' => [], 'patternReplacements' => [], 'minifyTemplates' => 0, 'minifyPhp' => 0, 'keepPhpDocComments' => [], // PHP compiling only: 'autoloadingOrderDetection' => TRUE, 'includeFirst' => [], 'includeLast' => [], 'phpFsMode' => 'PHP_PRESERVE_HDD', 'phpFunctionsToReplace' => [], 'phpFunctionsToKeep' => [], 'phpFunctionsToProcess' => [], 'errorReportingLevel' => E_ALL, ]
private static array $_htmlStyles
# [ 'success' => 'html,body{background:#005700;}', 'error' => 'html,body{background:#cd1818;}.xdebug-error,.xdebug-error th,.xdebug-error td{color:#000;text-shadow:none !important;font-size:125%;}.xdebug-var-dump font[color*=cc0000]{background:#fff;text-shadow:none;}', ]
private static array $_responseTemplates
# [ 'text' => "\n======================= %title =======================\n\n\n%h1\n\n\n%content\n\n", 'html' => '<!DOCTYPE HTML><html lang="en-US"><head><meta charset="UTF-8"><title>%title</title><style type="text/css">html,body{margin:30px;font-size:14px;color:#fff;text-align:left;line-height:1.5em;font-weight:bold;font-family:"consolas",courier new,monotype;text-shadow:1px 1px 0 rgba(0,0,0,.4);}h1{font-size:200%;line-height:1.5em;}h2{font-size:150%;line-height:1.5em;}%style</style></head><body><h1>%h1</h1>%content</body></html>', ]
Packager API Documentation API documentation generated by ApiGen