PHP Интерфейс Neos\Fusion\Core\ParserInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
parse ( string $sourceCode, string $contextPathAndFilename = null, array $objectTreeUntilNow = [] ) : array Parses the given TypoScript source code and returns an object tree as the result.
setObjectTypeNamespace ( string $alias, string $namespace ) : void Sets the given alias to the specified namespace.

Описание методов

parse() публичный метод

Parses the given TypoScript source code and returns an object tree as the result.
public parse ( string $sourceCode, string $contextPathAndFilename = null, array $objectTreeUntilNow = [] ) : array
$sourceCode string The TypoScript source code to parse
$contextPathAndFilename string An optional path and filename to use as a prefix for inclusion of further TypoScript files
$objectTreeUntilNow array Used internally for keeping track of the built object tree
Результат array A TypoScript object tree, generated from the source code

setObjectTypeNamespace() публичный метод

The namespaces defined through this setter or through a "namespace" declaration in one of the TypoScripts are used to resolve a fully qualified TypoScript object name while parsing TypoScript code. The alias is the handle by wich the namespace can be referred to. The namespace is, by convention, a package key which must correspond to a namespace used in the prototype definitions for TypoScript object types. The special alias "default" is used as a fallback for resolution of unqualified TypoScript object types.
public setObjectTypeNamespace ( string $alias, string $namespace ) : void
$alias string An alias for the given namespace, for example "neos"
$namespace string The namespace, for example "Neos.Neos"
Результат void