Class Packager_Php_Base
- Packager_Common_Base
-
Packager_Common_StaticCopies
-
Packager_Php_Base
Direct known subclasses
Packager_Php_Scripts_CompleterIndirect known subclasses
Packager_Php, Packager_Php_Completer, Packager_Php_Scripts_Dependencies, Packager_Php_Scripts_Order
Located at src/Packager/Php/Base.php
public
|
|
public static
|
|
public static
|
|
public static
|
|
public
|
|
private
|
|
private
|
cleanReleaseDir(),
copyStaticFilesAndFolders()
|
integer |
NAMESPACE_NONE
|
#
0
|
integer |
NAMESPACE_GLOBAL_CURLY_BRACKETS
|
#
1
|
integer |
NAMESPACE_NAMED_CURLY_BRACKETS
|
#
2
|
integer |
NAMESPACE_NAMED_SEMICOLONS
|
#
3
|
string |
PACKAGER_COMMAND_FUNCTION
|
#
'@packager'
|
string |
PACKAGER_COMMAND_REPLACEMENTS_OFF
|
#
'REPLACEMENTS_OFF'
|
string |
PACKAGER_COMMAND_REPLACEMENTS_ON
|
#
'REPLACEMENTS_ON'
|
protected static
string
|
$wrapperClassName
|
#
'\Packager_Php_Wrapper'
|
protected static
string
|
$wrapperStringDeclarator
|
#
'PACKAGER_'
|
protected static
array
|
$wrapperReplacements
|
#
[
T_DIR => NULL, // callable closure function, initialized later
T_FILE => NULL, // callable closure function, initialized later
T_DOC_COMMENT => NULL, // callable closure function, initialized later
T_REQUIRE_ONCE => ['require_once','%WrapperClass%::RequireOnce'],
T_INCLUDE_ONCE => ['include_once','%WrapperClass%::IncludeOnce'],
T_REQUIRE => ['require', '%WrapperClass%::RequireStandard'],
T_INCLUDE => ['include', '%WrapperClass%::IncludeStandard'],
T_STRING => [
'DirectoryIterator' => '%WrapperClass%_DirectoryIterator',
// 'RecursiveDirectoryIterator' => 'RecursiveDirectoryIterator', // not implemented
'SplFileInfo' => '%WrapperClass%_SplFileInfo',
'is_dir' => '%WrapperClass%::IsDir',
'mkdir' => '%WrapperClass%::MkDir',
'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
|
#
[
]
|
protected static
array
|
$includeLastDefault
|
#
[
'/index.php',
]
|
protected static
array
|
$excludePatternsDefault
|
#
[
'#^/Libs/startup\.php$#',
'#^/vendor/mvccore/mvccore/src/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) |
#
5
|
protected static
array
|
$phpReplacementsStatistics
|
#
[]
|
protected static
array
|
$wrapperInternalElementsDependencies
|
#
[
'NormalizePath' => ',require_once,include_once,require,include,readfile,file_get_contents,file,parse_ini_file,simplexml_load_file,filemtime,filesize,file_exists,DirectoryIterator,md5_file,is_dir,mkdir,is_file,',
'Warning' => ',require_once,include_once,require,include,readfile,file_get_contents,file,parse_ini_file,simplexml_load_file,filemtime,filesize,',
'_getFileContent' => ',require_once,include_once,require,include,readfile,file_get_contents,file,parse_ini_file,simplexml_load_file,md5_file,',
'_includeFile' => ',require_once,include_once,require,include,',
'_isProtocolPath' => ',readfile,file_get_contents,file,simplexml_load_file,',
'_changeItself' => ',mkdir,',
]
|
protected
array
|
$filesPhpDependencies
|
#
[]
|
protected
array
|
$filesPhpOrder
|
#
[]
|
protected
string
|
$wrapperCode
|
#
''
|
protected
string
|
$result
|
#
''
|
protected
string
|
$resultFilesInfo
|
#
''
|
protected
string
|
$resultFilesContents
|
#
''
|
protected
array
|
$unsafeOrderDetection
|
#
[]
|
protected
boolean
|
$anyPhpContainsNamespace
|
#
FALSE
|
protected
boolean
|
$globalNamespaceOpened
|
#
TRUE
|
$staticallyCopiedFiles
|