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_Scripts_Replacer

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