PHP Класс Neos\Flow\Utility\Environment

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$context Neos\Flow\Core\ApplicationContext
$request Neos\Flow\Mvc\ActionRequest
$temporaryDirectory string
$temporaryDirectoryBase string The base path of $temporaryDirectory. This property can (and should) be set from outside.

Открытые методы

Метод Описание
__construct ( ApplicationContext $context ) Initializes the environment instance.
getContext ( ) : ApplicationContext
getMaximumPathLength ( ) : integer Retrieves the maximum path length that is valid in the current environment.
getPathToTemporaryDirectory ( ) : string Returns the full path to Flow's temporary directory.
isRewriteEnabled ( ) : boolean Whether or not URL rewriting is enabled.
setTemporaryDirectoryBase ( string $temporaryDirectoryBase ) : void Sets the base path of the temporary directory

Защищенные методы

Метод Описание
createTemporaryDirectory ( string $temporaryDirectoryBase ) : string Creates Flow's temporary directory - or at least asserts that it exists and is writable.

Описание методов

__construct() публичный Метод

Initializes the environment instance.
public __construct ( ApplicationContext $context )
$context Neos\Flow\Core\ApplicationContext The Flow context

createTemporaryDirectory() защищенный Метод

For each Flow Application Context, we create an extra temporary folder, and for nested contexts, the folders are prefixed with "SubContext" to avoid ambiguity, and look like: Data/Temporary/Production/SubContextLive
protected createTemporaryDirectory ( string $temporaryDirectoryBase ) : string
$temporaryDirectoryBase string Full path to the base for the temporary directory
Результат string The full path to the temporary directory

getContext() публичный Метод

public getContext ( ) : ApplicationContext
Результат Neos\Flow\Core\ApplicationContext

getMaximumPathLength() публичный Метод

Retrieves the maximum path length that is valid in the current environment.
public getMaximumPathLength ( ) : integer
Результат integer The maximum available path length

getPathToTemporaryDirectory() публичный Метод

Returns the full path to Flow's temporary directory.
public getPathToTemporaryDirectory ( ) : string
Результат string Path to PHP's temporary directory

isRewriteEnabled() публичный Метод

Whether or not URL rewriting is enabled.
public isRewriteEnabled ( ) : boolean
Результат boolean

setTemporaryDirectoryBase() публичный Метод

Sets the base path of the temporary directory
public setTemporaryDirectoryBase ( string $temporaryDirectoryBase ) : void
$temporaryDirectoryBase string Base path of the temporary directory, with trailing slash
Результат void

Описание свойств

$context защищенное свойство

protected ApplicationContext,Neos\Flow\Core $context
Результат Neos\Flow\Core\ApplicationContext

$request защищенное свойство

protected ActionRequest,Neos\Flow\Mvc $request
Результат Neos\Flow\Mvc\ActionRequest

$temporaryDirectory защищенное свойство

protected string $temporaryDirectory
Результат string

$temporaryDirectoryBase защищенное свойство

The base path of $temporaryDirectory. This property can (and should) be set from outside.
protected string $temporaryDirectoryBase
Результат string