PHP Класс Neos\FluidAdaptor\View\StandaloneView

Helpful if you want to use Fluid separately from MVC E.g. to generate template based emails.
Наследование: extends AbstractTemplateView
Показать файл Открыть проект Примеры использования класса

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

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