PHP 클래스 AppserverIo\Appserver\Core\Utilities\AppEnvironmentHelper

저자: Bernhard Wick ([email protected])
저자: Hans Höchtl ([email protected])
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cachedProperties AppserverIo\Properties\Properties Cached configuration properties

공개 메소드들

메소드 설명
getEnvironmentAwareGlobPattern ( string $appBase, string $fileGlob, integer $flags, string $fileExtension = 'xml' ) : string Will take a segmented path to a file (which might contain glob type wildcards) and return it fixed to the currently active environment modifier.
getEnvironmentModifier ( string $appBase ) : string Get the environment modifier (if any) which helps to switch the configuration environment

보호된 메소드들

메소드 설명
globDir ( string $pattern, integer $flags, boolean $recursive = true ) : array Parses and returns the directories and files that matches the passed glob pattern in a recursive way (if wanted).

메소드 상세

getEnvironmentAwareGlobPattern() 공개 정적인 메소드

E.g. AppEnvironmentHelper::getEnvironmentAwareFilePath('webapps/example', 'META-INF/*-ds') => 'webapps/example/META-INF/*-ds.dev.xml'
public static getEnvironmentAwareGlobPattern ( string $appBase, string $fileGlob, integer $flags, string $fileExtension = 'xml' ) : string
$appBase string The base file path to the application
$fileGlob string The intermediate path (or glob pattern) from app base path to file extension
$flags integer The flags passed to the glob function
$fileExtension string The extension of the file, will default to 'xml'
리턴 string

getEnvironmentModifier() 공개 정적인 메소드

Get the environment modifier (if any) which helps to switch the configuration environment
public static getEnvironmentModifier ( string $appBase ) : string
$appBase string The base of the application we are dealing with
리턴 string

globDir() 보호된 정적인 메소드

Parses and returns the directories and files that matches the passed glob pattern in a recursive way (if wanted).
protected static globDir ( string $pattern, integer $flags, boolean $recursive = true ) : array
$pattern string The glob pattern used to parse the directories
$flags integer The flags passed to the glob function
$recursive boolean Whether or not to parse directories recursively
리턴 array The directories matches the passed glob pattern

프로퍼티 상세

$cachedProperties 보호되어 있는 정적으로 프로퍼티

Cached configuration properties
protected static Properties,AppserverIo\Properties $cachedProperties
리턴 AppserverIo\Properties\Properties