PHP 클래스 Neos\Flow\Utility\Environment

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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