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_Php_Scripts_Replacer

Located at src/Packager/Php/Scripts/Replacer.php
Methods summary
public static
# SetPhpFunctionsToProcess( $phpFunctionsToProcess = [] )
public static
# SetWrapperReplacements( $wrapperReplacements = [] )
public static
# SetWrapperClassName( $wrapperClassName = '' )
public static
# GetReplacementsStatistics( )
public static
# ProcessScriptsReplacements( & $fileInfo, & $cfg )
public static
# ProcessTemplatesReplacements( & $fileInfo, & $cfg )
public static
# ProcessNamespaces( & $fileInfo, & $cfg )
public
# __construct( & $fileInfo, $cfg, $tokens )
public &
# SetEnabled( $enabled )
protected
# runReplacementsProcessing( )
protected
# runNamespacesProcessing( )
protected
# runTemplatesProcessing( )
protected
# monitorNamespace( $token )
protected
# monitorClass( $token, $currentIndex )
protected
# monitorFunctions( $token, $currentIndex )
protected
# monitorForeachHead( $token, $currentIndex )
protected
# processPhpCodeReplacement( $oldPart, $tokenId, $i )
protected
# processPhpCodeReplacementObjectType( $replacement, $oldPart, $i )
protected
# processPhpCodeReplacementArrayType( $replacement, $oldPart, $tokenId, $i )
protected
# getClassDynamicFunctionEnvironment( $functionIndex )
protected static
# addToReplacementStatistics( $replacementKey )
Properties summary
protected static array $dynamicClassFnDeterminators
# [ 'continueTokens'=> [ T_WHITESPACE=> 1, T_COMMENT => 1, ], 'endingTokens' => [ T_PUBLIC => 1, T_PROTECTED => 1, T_PRIVATE => 1, T_ABSTRACT => 1, T_FINAL => 1, ], ]
protected static array $phpFunctionsToProcess
# []
protected static array $wrapperReplacements
# []
protected static array $phpReplacementsStatistics
# []
protected static string $wrapperClassName
# ''
protected $cfg
#
protected array $result
# []
protected string $scriptContent
# ''
protected string $statementEndOperator
# ';'
protected $fileInfo
# NULL
protected boolean $enabled
# TRUE
protected array $tokens
# []
protected integer $namespaceState
# 0
protected integer $classState
# 0
protected integer $foreachState
# 0
protected integer $classBracketsLevel
# 0
protected array $functionsStates
# [0]
protected array $functionsOpenIndexes
# [0]
protected array $functionsBracketsLevels
# [0]
Packager API Documentation API documentation generated by ApiGen