PHP 클래스 Neos\Neos\Domain\Service\TypoScriptService

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

보호된 프로퍼티들

프로퍼티 타입 설명
$appendTypoScriptIncludes array Example: array( 'resources://MyVendor.MyPackageKey/Private/TypoScript/Root.fusion', 'resources://SomeVendor.OtherPackage/Private/TypoScript/Root.fusion' )
$autoIncludeConfiguration array
$autoIncludeTypoScriptPattern string Pattern used for determining the TypoScript root file for autoIncludes
$legacyAutoIncludeTypoScriptPattern string Legacy pattern used for determining the TypoScript root file for autoIncludes
$legacySiteRootTypoScriptPattern string Legacy pattern used for determining the TypoScript root file for a site
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$packageManager Neos\Flow\Package\PackageManagerInterface
$prependTypoScriptIncludes array Example: array( 'resources://MyVendor.MyPackageKey/Private/TypoScript/Root.fusion', 'resources://SomeVendor.OtherPackage/Private/TypoScript/Root.fusion' )
$siteRootTypoScriptPattern string Pattern used for determining the TypoScript root file for a site
$typoScriptParser Neos\Fusion\Core\Parser

공개 메소드들

메소드 설명
createRuntime ( Neos\ContentRepository\Domain\Model\NodeInterface $currentSiteNode, ControllerContext $controllerContext ) : Runtime Create a runtime for the given site node
getAppendTypoScriptIncludes ( ) : array Get TypoScript resources that will be appended after the site TypoScript.
getMergedTypoScriptObjectTree ( Neos\ContentRepository\Domain\Model\NodeInterface $startNode ) : array Returns a merged TypoScript object tree in the context of the given nodes
getPrependTypoScriptIncludes ( ) : array Get the TypoScript resources that are included before the site TypoScript.
initializeObject ( ) : void Initializes the parser
setAppendTypoScriptIncludes ( array $appendTypoScriptIncludes ) : void Set TypoScript resources that should be appended after the site TypoScript, this defaults to an empty array.
setPrependTypoScriptIncludes ( array $prependTypoScriptIncludes ) : void Set TypoScript resources that should be prepended before the site TypoScript, it defaults to the Neos Root.fusion TypoScript.
setSiteRootTypoScriptPattern ( string $siteRootTypoScriptPattern ) : void Set the pattern for including the site root TypoScript

보호된 메소드들

메소드 설명
generateNodeTypeDefinitions ( ) : string Generate TypoScript prototype definitions for all node types
generateTypoScriptForNodeType ( NodeType $nodeType ) : string Generate a TypoScript prototype definition for a given node type
getTypoScriptIncludes ( array $typoScriptResources ) : string Concatenate the given TypoScript resources with include statements
prepareAutoIncludeTypoScript ( ) : array Prepares an array with TypoScript paths to auto include before the Site TypoScript.
readExternalTypoScriptFile ( string $pathAndFilename ) : string Reads the TypoScript file from the given path and filename.

메소드 상세

createRuntime() 공개 메소드

Create a runtime for the given site node
public createRuntime ( Neos\ContentRepository\Domain\Model\NodeInterface $currentSiteNode, ControllerContext $controllerContext ) : Runtime
$currentSiteNode Neos\ContentRepository\Domain\Model\NodeInterface
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext
리턴 Neos\Fusion\Core\Runtime

generateNodeTypeDefinitions() 보호된 메소드

Only fully qualified node types (e.g. MyVendor.MyPackage:NodeType) will be considered.
protected generateNodeTypeDefinitions ( ) : string
리턴 string

generateTypoScriptForNodeType() 보호된 메소드

A prototype will be rendererd with the generator-class defined in the nodeType-configuration 'fusion.prototypeGenerator'
protected generateTypoScriptForNodeType ( NodeType $nodeType ) : string
$nodeType Neos\ContentRepository\Domain\Model\NodeType
리턴 string

getAppendTypoScriptIncludes() 공개 메소드

Get TypoScript resources that will be appended after the site TypoScript.

getMergedTypoScriptObjectTree() 공개 메소드

Returns a merged TypoScript object tree in the context of the given nodes
public getMergedTypoScriptObjectTree ( Neos\ContentRepository\Domain\Model\NodeInterface $startNode ) : array
$startNode Neos\ContentRepository\Domain\Model\NodeInterface Node marking the starting point
리턴 array The merged object tree as of the given node

getPrependTypoScriptIncludes() 공개 메소드

Get the TypoScript resources that are included before the site TypoScript.

getTypoScriptIncludes() 보호된 메소드

Concatenate the given TypoScript resources with include statements
protected getTypoScriptIncludes ( array $typoScriptResources ) : string
$typoScriptResources array An array of TypoScript resource URIs
리턴 string A string of include statements for all resources

initializeObject() 공개 메소드

Initializes the parser
public initializeObject ( ) : void
리턴 void

prepareAutoIncludeTypoScript() 보호된 메소드

Prepares an array with TypoScript paths to auto include before the Site TypoScript.
protected prepareAutoIncludeTypoScript ( ) : array
리턴 array

readExternalTypoScriptFile() 보호된 메소드

If it doesn't exist, this function will just return an empty string.
protected readExternalTypoScriptFile ( string $pathAndFilename ) : string
$pathAndFilename string Path and filename of the TypoScript file
리턴 string The content of the .fusion file, plus one chr(10) at the end

setAppendTypoScriptIncludes() 공개 메소드

Set TypoScript resources that should be appended after the site TypoScript, this defaults to an empty array.
public setAppendTypoScriptIncludes ( array $appendTypoScriptIncludes ) : void
$appendTypoScriptIncludes array An array of TypoScript resource URIs
리턴 void

setPrependTypoScriptIncludes() 공개 메소드

Set TypoScript resources that should be prepended before the site TypoScript, it defaults to the Neos Root.fusion TypoScript.
public setPrependTypoScriptIncludes ( array $prependTypoScriptIncludes ) : void
$prependTypoScriptIncludes array
리턴 void

setSiteRootTypoScriptPattern() 공개 메소드

Set the pattern for including the site root TypoScript
public setSiteRootTypoScriptPattern ( string $siteRootTypoScriptPattern ) : void
$siteRootTypoScriptPattern string A string for the sprintf format that takes the site package key as a single placeholder
리턴 void

프로퍼티 상세

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

Example: array( 'resources://MyVendor.MyPackageKey/Private/TypoScript/Root.fusion', 'resources://SomeVendor.OtherPackage/Private/TypoScript/Root.fusion' )
protected array $appendTypoScriptIncludes
리턴 array

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

protected array $autoIncludeConfiguration
리턴 array

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

Pattern used for determining the TypoScript root file for autoIncludes
protected string $autoIncludeTypoScriptPattern
리턴 string

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

Legacy pattern used for determining the TypoScript root file for autoIncludes
사용 중단: since 3.0 will be removed in 4.0
protected string $legacyAutoIncludeTypoScriptPattern
리턴 string

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

Legacy pattern used for determining the TypoScript root file for a site
사용 중단: since 3.0 will be removed in 4.0
protected string $legacySiteRootTypoScriptPattern
리턴 string

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

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
리턴 Neos\ContentRepository\Domain\Service\NodeTypeManager

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

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

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

protected PackageManagerInterface,Neos\Flow\Package $packageManager
리턴 Neos\Flow\Package\PackageManagerInterface

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

Example: array( 'resources://MyVendor.MyPackageKey/Private/TypoScript/Root.fusion', 'resources://SomeVendor.OtherPackage/Private/TypoScript/Root.fusion' )
protected array $prependTypoScriptIncludes
리턴 array

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

Pattern used for determining the TypoScript root file for a site
protected string $siteRootTypoScriptPattern
리턴 string

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

protected Parser,Neos\Fusion\Core $typoScriptParser
리턴 Neos\Fusion\Core\Parser