PHP Класс AppserverIo\Appserver\Core\Utilities\AppEnvironmentHelper

Автор: Bernhard Wick ([email protected])
Автор: Hans Höchtl ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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