PHP 클래스 AppserverIo\Appserver\Core\Api\Node\ContextNode

저자: Tim Wagner ([email protected])
저자: Johann Zelger ([email protected])
상속: extends AppserverIo\Description\Api\Node\AbstractNode, use trait AppserverIo\Appserver\Core\Api\Node\ClassLoadersNodeTrait, use trait LoggersNodeTrait, use trait ManagersNodeTrait, use trait AppserverIo\Appserver\Core\Api\Node\ProvisionersNodeTrait, use trait ParamsNodeTrait
파일 보기 프로젝트 열기: appserver-io/appserver 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$environmentName string The application environment
$factory string The context factory class name.
$name string The context name.
$type string The context type.
$webappPath string The path to the web application.

공개 메소드들

메소드 설명
__construct ( string $name = '', string $type = '', string $factory = '', array $params = [], string $webappPath = '' ) Initializes the context configuration with the passed values.
getEnvironmentName ( ) : string Returns the environment name of the application
getFactory ( ) : ApplicationFactory Returns the context factory class name.
getName ( ) : mixed Returns the context name.
getType ( ) : string | null Returns the context type.
getWebappPath ( ) : string Returns the path to the web application.
initDefaultDirectories ( ) : void Initialize the default directories.
merge ( ContextNode $contextNode ) : void This method merges the installation steps of the passed provisioning node into the steps of this instance. If a installation node with the same type already exists, the one of this instance will be overwritten.
setEnvironmentName ( string $environmentName ) : void Setter for the environment name
setFactory ( string $factory ) : void Sets the context factory class name.
setName ( string $name ) : void Sets the context name.
setType ( string $type ) : void Sets the context type.
setWebappPath ( string $webappPath ) : void Set's the path to the web application.

메소드 상세

__construct() 공개 메소드

Initializes the context configuration with the passed values.
public __construct ( string $name = '', string $type = '', string $factory = '', array $params = [], string $webappPath = '' )
$name string The context name
$type string The context class name
$factory string The context factory class name
$params array The context params
$webappPath string The path to the web application

getEnvironmentName() 공개 메소드

Returns the environment name of the application
public getEnvironmentName ( ) : string
리턴 string

getFactory() 공개 메소드

Returns the context factory class name.
public getFactory ( ) : ApplicationFactory
리턴 AppserverIo\Appserver\Application\ApplicationFactory

getName() 공개 메소드

Returns the context name.
public getName ( ) : mixed
리턴 mixed

getType() 공개 메소드

Returns the context type.
public getType ( ) : string | null
리턴 string | null The context type

getWebappPath() 공개 메소드

Returns the path to the web application.
public getWebappPath ( ) : string
리턴 string

initDefaultDirectories() 공개 메소드

Initialize the default directories.
public initDefaultDirectories ( ) : void
리턴 void

merge() 공개 메소드

This method merges the installation steps of the passed provisioning node into the steps of this instance. If a installation node with the same type already exists, the one of this instance will be overwritten.
public merge ( ContextNode $contextNode ) : void
$contextNode ContextNode The node with the installation steps we want to merge
리턴 void

setEnvironmentName() 공개 메소드

Setter for the environment name
public setEnvironmentName ( string $environmentName ) : void
$environmentName string The environment name to set
리턴 void

setFactory() 공개 메소드

Sets the context factory class name.
public setFactory ( string $factory ) : void
$factory string The context factory class name
리턴 void

setName() 공개 메소드

Sets the context name.
public setName ( string $name ) : void
$name string The context name
리턴 void

setType() 공개 메소드

Sets the context type.
public setType ( string $type ) : void
$type string The context type
리턴 void

setWebappPath() 공개 메소드

Set's the path to the web application.
public setWebappPath ( string $webappPath ) : void
$webappPath string The path to the web application
리턴 void

프로퍼티 상세

$environmentName 보호되어 있는 프로퍼티

The application environment
protected string $environmentName
리턴 string

$factory 보호되어 있는 프로퍼티

The context factory class name.
protected string $factory
리턴 string

$name 보호되어 있는 프로퍼티

The context name.
protected string $name
리턴 string

$type 보호되어 있는 프로퍼티

The context type.
protected string $type
리턴 string

$webappPath 보호되어 있는 프로퍼티

The path to the web application.
protected string $webappPath
리턴 string