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_Php_Base

Packager_Common_Base
Extended by Packager_Php_Base

Direct known subclasses

Packager_Php_Scripts_Completer

Indirect known subclasses

Packager_Php, Packager_Php_Completer, Packager_Php_Scripts_Dependencies, Packager_Php_Scripts_Order
Located at packager/src/Packager/Php/Base.php
Methods summary
public
# __construct( $cfg = array() )

Overrides

Packager_Common_Base::__construct()
public static
# SetIncludeFirstDefault( array $includeFirstDefault = array() )
public static
# SetIncludeLastDefault( array $includeLastDefault = array() )
public static
# SetExcludePatternsDefault( array $excludePatternsDefault = array() )
public
# Run( $cfg = array() )

Overrides

Packager_Common_Base::Run()
Methods inherited from Packager_Common_Base
AddExcludePatterns(), AddIncludeFirst(), AddIncludeLast(), AddIncludePatterns(), AddPatternReplacements(), AddStringReplacements(), Create(), ErrorHandler(), ExceptionHandler(), Get(), KeepPhpFunctions(), MergeConfiguration(), ReplacePhpFunctions(), SetAutoloadingOrderDetection(), SetExcludePatterns(), SetIncludeFirst(), SetIncludeLast(), SetIncludePatterns(), SetMinifyPhp(), SetMinifyTemplates(), SetPatternReplacements(), SetPhpFileSystemMode(), SetReleaseFile(), SetRemovePhpDocComments(), SetSourceDir(), SetStringReplacements(), ShutdownHandler(), completeAllFiles(), completeJobAndParams(), decodeJson(), excludeFilesByCfg(), executeJobAndGetResult(), sendJsonResultAndExit(), sendResult(), shrinkPhpCode(), shrinkPhpCodeReducePhpDocComment()
Constants summary
integer NAMESPACE_NONE
# 0
integer NAMESPACE_GLOBAL_CURLY_BRACKETS
# 1
integer NAMESPACE_NAMED_CURLY_BRACKETS
# 2
integer NAMESPACE_NAMED_SEMICOLONS
# 3
Properties summary
protected static string $wrapperClassName
# '\Packager_Php_Wrapper'
protected static string $wrapperStringDeclarator
# 'PACKAGER_'
protected static array $wrapperReplacements
# array( T_DIR => NULL, // callable closure function, initialized later T_FILE => NULL, // callable closure function, initialized later T_REQUIRE_ONCE => array('require_once','%WrapperClass%::RequireOnce'), T_INCLUDE_ONCE => array('include_once','%WrapperClass%::IncludeOnce'), T_REQUIRE => array('require', '%WrapperClass%::RequireStandard'), T_INCLUDE => array('include', '%WrapperClass%::IncludeStandard'), T_STRING => array( 'DirectoryIterator' => '%WrapperClass%_DirectoryIterator', // 'RecursiveDirectoryIterator' => 'RecursiveDirectoryIterator', // not implemented 'SplFileInfo' => '%WrapperClass%_SplFileInfo', 'is_dir' => '%WrapperClass%::IsDir', 'is_file' => '%WrapperClass%::IsFile', 'readfile' => '%WrapperClass%::Readfile', 'file_get_contents' => '%WrapperClass%::FileGetContents', 'file_exists' => '%WrapperClass%::FileExists', 'filemtime' => '%WrapperClass%::Filemtime', 'filesize' => '%WrapperClass%::Filesize', 'simplexml_load_file' => '%WrapperClass%::SimplexmlLoadFile', 'parse_ini_file' => '%WrapperClass%::ParseIniFile', 'md5_file' => '%WrapperClass%::Md5File', ), )
protected static array $includeFirstDefault
# array( )
protected static array $includeLastDefault
# array( '/index.php', )
protected static array $excludePatternsDefault
# array( '^/Libs/startup\.php$', )
protected static integer $errorReportingLevelDefault

0 - Turn off all error reporting 1 - Running errors (E_ERROR | E_WARNING | E_PARSE) 2 - Running errors + notices (E_ERROR | E_WARNING | E_PARSE | E_NOTICE) 3 - All errors except notices and warnings (E_ALL ^ (E_NOTICE | E_WARNING)) 4 - All errors except notices (E_ALL ^ E_NOTICE) 5 - All errors (E_ALL)

0 - Turn off all error reporting 1 - Running errors (E_ERROR | E_WARNING | E_PARSE) 2 - Running errors + notices (E_ERROR | E_WARNING | E_PARSE | E_NOTICE) 3 - All errors except notices and warnings (E_ALL ^ (E_NOTICE | E_WARNING)) 4 - All errors except notices (E_ALL ^ E_NOTICE) 5 - All errors (E_ALL)

# 5
protected static array $phpReplacementsStatistics
# array()
protected static array $wrapperInternalElementsDependencies
# array( 'NormalizePath' => ',require_once,include_once,require,include,readfile,file_get_contents,parse_ini_file,simplexml_load_file,filemtime,filesize,file_exists,DirectoryIterator,md5_file,is_dir,is_file,', 'Warning' => ',require_once,include_once,require,include,readfile,file_get_contents,parse_ini_file,simplexml_load_file,filemtime,filesize,', '_getFileContent' => ',require_once,include_once,require,include,readfile,file_get_contents,parse_ini_file,simplexml_load_file,md5_file,', '_includeFile' => ',require_once,include_once,require,include,', '_isProtocolPath' => ',readfile,file_get_contents,simplexml_load_file,', )
protected array $filesPhpDependencies
# array()
protected array $filesPhpOrder
# array()
protected string $wrapperCode
# ''
protected string $result
# ''
protected string $resultFilesInfo
# ''
protected string $resultFilesContents
# ''
protected array $unsafeOrderDetection
# array()
protected boolean $anyPhpContainsNamespace
# FALSE
protected boolean $globalNamespaceOpened
# TRUE
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