PHP 클래스 Neos\FluidAdaptor\View\StandaloneView

Helpful if you want to use Fluid separately from MVC E.g. to generate template based emails.
상속: extends AbstractTemplateView
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$environment Neos\Flow\Utility\Environment
$flashMessageContainer Neos\Flow\Mvc\FlashMessageContainer
$layoutRootPath string absolute root path of the folder that contains Fluid layouts
$partialRootPath string absolute root path of the folder that contains Fluid partials
$request Neos\Flow\Mvc\ActionRequest
$templatePathAndFilename string absolute path of the Fluid template
$templateSource string Source code of the Fluid template

공개 메소드들

메소드 설명
__construct ( ActionRequest $request = null, array $options = [] ) Constructor
createWithOptions ( array $options ) : StandaloneView Factory method to create an instance with given options.
getFormat ( ) : string Returns the format of the current request (defaults is "html")
getLayoutRootPaths ( ) : string Resolves the layout root to be used inside other paths.
getPartialRootPaths ( ) : string Returns the absolute path to the folder that contains Fluid partial files
getRequest ( ) : Neos\Flow\Mvc\RequestInterface Returns the current request object
getTemplatePathAndFilename ( ) : string Returns the absolute path to a Fluid template file if it was specified with setTemplatePathAndFilename() before
hasTemplate ( ) : boolean Checks whether a template can be resolved for the current request
initializeObject ( ) : void Initiates the StandaloneView by creating the required ControllerContext
setFormat ( string $format ) : void Sets the format of the current request (default format is "html")
setLayoutRootPath ( string $layoutRootPath ) : void Sets the absolute path to the folder that contains Fluid layout files
setLayoutRootPaths ( array $layoutRootPaths ) : void Set the root path(s) to the layouts.
setPartialRootPath ( string $partialRootPath ) : void Sets the absolute path to the folder that contains Fluid partial files.
setPartialRootPaths ( array $partialRootPaths ) : void Set the root path(s) to the partials.
setTemplate ( string $templateName )
setTemplatePathAndFilename ( string $templatePathAndFilename ) : void Sets the absolute path to a Fluid template file
setTemplateRootPaths ( array $templateRootPaths ) : void Set the root path(s) to the templates.
setTemplateSource ( string $templateSource ) : void Sets the Fluid template source You can use setTemplatePathAndFilename() alternatively if you only want to specify the template path

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( ActionRequest $request = null, array $options = [] )
$request Neos\Flow\Mvc\ActionRequest The current action request. If none is specified it will be created from the environment.
$options array

createWithOptions() 공개 정적인 메소드

Factory method to create an instance with given options.
public static createWithOptions ( array $options ) : StandaloneView
$options array
리턴 StandaloneView

getFormat() 공개 메소드

Returns the format of the current request (defaults is "html")
public getFormat ( ) : string
리턴 string $format

getLayoutRootPaths() 공개 메소드

Resolves the layout root to be used inside other paths.
public getLayoutRootPaths ( ) : string
리턴 string Fluid layout root path

getPartialRootPaths() 공개 메소드

Returns the absolute path to the folder that contains Fluid partial files
public getPartialRootPaths ( ) : string
리턴 string Fluid partial root path

getRequest() 공개 메소드

Returns the current request object
public getRequest ( ) : Neos\Flow\Mvc\RequestInterface
리턴 Neos\Flow\Mvc\RequestInterface

getTemplatePathAndFilename() 공개 메소드

Returns the absolute path to a Fluid template file if it was specified with setTemplatePathAndFilename() before
public getTemplatePathAndFilename ( ) : string
리턴 string Fluid template path

hasTemplate() 공개 메소드

Checks whether a template can be resolved for the current request
public hasTemplate ( ) : boolean
리턴 boolean

initializeObject() 공개 메소드

Initiates the StandaloneView by creating the required ControllerContext
public initializeObject ( ) : void
리턴 void

setFormat() 공개 메소드

Sets the format of the current request (default format is "html")
public setFormat ( string $format ) : void
$format string
리턴 void

setLayoutRootPath() 공개 메소드

Sets the absolute path to the folder that contains Fluid layout files
public setLayoutRootPath ( string $layoutRootPath ) : void
$layoutRootPath string Fluid layout root path
리턴 void

setLayoutRootPaths() 공개 메소드

Set the root path(s) to the layouts.
public setLayoutRootPaths ( array $layoutRootPaths ) : void
$layoutRootPaths array Root path to the layouts
리턴 void

setPartialRootPath() 공개 메소드

Sets the absolute path to the folder that contains Fluid partial files.
public setPartialRootPath ( string $partialRootPath ) : void
$partialRootPath string Fluid partial root path
리턴 void

setPartialRootPaths() 공개 메소드

If set, overrides the one determined from $this->partialRootPathPattern
public setPartialRootPaths ( array $partialRootPaths ) : void
$partialRootPaths array Root paths to the partials. If set, overrides the one determined from $this->partialRootPathPattern
리턴 void

setTemplate() 공개 메소드

public setTemplate ( string $templateName )
$templateName string

setTemplatePathAndFilename() 공개 메소드

Sets the absolute path to a Fluid template file
public setTemplatePathAndFilename ( string $templatePathAndFilename ) : void
$templatePathAndFilename string Fluid template path
리턴 void

setTemplateRootPaths() 공개 메소드

Set the root path(s) to the templates.
public setTemplateRootPaths ( array $templateRootPaths ) : void
$templateRootPaths array Root paths to the templates.
리턴 void

setTemplateSource() 공개 메소드

Sets the Fluid template source You can use setTemplatePathAndFilename() alternatively if you only want to specify the template path
public setTemplateSource ( string $templateSource ) : void
$templateSource string Fluid template source code
리턴 void

프로퍼티 상세

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

protected Environment,Neos\Flow\Utility $environment
리턴 Neos\Flow\Utility\Environment

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

protected FlashMessageContainer,Neos\Flow\Mvc $flashMessageContainer
리턴 Neos\Flow\Mvc\FlashMessageContainer

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

absolute root path of the folder that contains Fluid layouts
protected string $layoutRootPath
리턴 string

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

absolute root path of the folder that contains Fluid partials
protected string $partialRootPath
리턴 string

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

protected ActionRequest,Neos\Flow\Mvc $request
리턴 Neos\Flow\Mvc\ActionRequest

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

absolute path of the Fluid template
protected string $templatePathAndFilename
리턴 string

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

Source code of the Fluid template
protected string $templateSource
리턴 string