PHP Class Neos\FluidAdaptor\View\StandaloneView

Helpful if you want to use Fluid separately from MVC E.g. to generate template based emails.
Inheritance: extends AbstractTemplateView
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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() public static méthode

Factory method to create an instance with given options.
public static createWithOptions ( array $options ) : StandaloneView
$options array
Résultat StandaloneView

getFormat() public méthode

Returns the format of the current request (defaults is "html")
public getFormat ( ) : string
Résultat string $format

getLayoutRootPaths() public méthode

Resolves the layout root to be used inside other paths.
public getLayoutRootPaths ( ) : string
Résultat string Fluid layout root path

getPartialRootPaths() public méthode

Returns the absolute path to the folder that contains Fluid partial files
public getPartialRootPaths ( ) : string
Résultat string Fluid partial root path

getRequest() public méthode

Returns the current request object
public getRequest ( ) : Neos\Flow\Mvc\RequestInterface
Résultat Neos\Flow\Mvc\RequestInterface

getTemplatePathAndFilename() public méthode

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

hasTemplate() public méthode

Checks whether a template can be resolved for the current request
public hasTemplate ( ) : boolean
Résultat boolean

initializeObject() public méthode

Initiates the StandaloneView by creating the required ControllerContext
public initializeObject ( ) : void
Résultat void

setFormat() public méthode

Sets the format of the current request (default format is "html")
public setFormat ( string $format ) : void
$format string
Résultat void

setLayoutRootPath() public méthode

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

setLayoutRootPaths() public méthode

Set the root path(s) to the layouts.
public setLayoutRootPaths ( array $layoutRootPaths ) : void
$layoutRootPaths array Root path to the layouts
Résultat void

setPartialRootPath() public méthode

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

setPartialRootPaths() public méthode

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
Résultat void

setTemplate() public méthode

public setTemplate ( string $templateName )
$templateName string

setTemplatePathAndFilename() public méthode

Sets the absolute path to a Fluid template file
public setTemplatePathAndFilename ( string $templatePathAndFilename ) : void
$templatePathAndFilename string Fluid template path
Résultat void

setTemplateRootPaths() public méthode

Set the root path(s) to the templates.
public setTemplateRootPaths ( array $templateRootPaths ) : void
$templateRootPaths array Root paths to the templates.
Résultat void

setTemplateSource() public méthode

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
Résultat void

Property Details

$environment protected_oe property

protected Environment,Neos\Flow\Utility $environment
Résultat Neos\Flow\Utility\Environment

$flashMessageContainer protected_oe property

protected FlashMessageContainer,Neos\Flow\Mvc $flashMessageContainer
Résultat Neos\Flow\Mvc\FlashMessageContainer

$layoutRootPath protected_oe property

absolute root path of the folder that contains Fluid layouts
protected string $layoutRootPath
Résultat string

$partialRootPath protected_oe property

absolute root path of the folder that contains Fluid partials
protected string $partialRootPath
Résultat string

$request protected_oe property

protected ActionRequest,Neos\Flow\Mvc $request
Résultat Neos\Flow\Mvc\ActionRequest

$templatePathAndFilename protected_oe property

absolute path of the Fluid template
protected string $templatePathAndFilename
Résultat string

$templateSource protected_oe property

Source code of the Fluid template
protected string $templateSource
Résultat string