Свойство | Тип | Описание | |
---|---|---|---|
$reservedParseTreeKeys | array | Reserved parse tree keys for internal usage. |
Свойство | Тип | Описание | |
---|---|---|---|
$contextPathAndFilename | string | An optional context path which is used as a prefix for inclusion of further TypoScript files | |
$currentBlockCommentState | boolean | Determines if a block comment is currently active or not. | |
$currentLineNumber | integer | The line number which is currently processed | |
$currentObjectPathStack | array | The current object path context as defined by confinements. | |
$currentSourceCodeLines | array | An array of strings of the source code which has | |
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$objectTree | array | The TypoScript object tree, created by this parser. | |
$objectTypeNamespaces | array | By convention, the namespace should be a package key, but other strings would be possible, too. Note that, in order to resolve an object type, a prototype with that namespace and name must be defined elsewhere. These namespaces are _not_ used for resolution of processor class names. |
Метод | Описание | |
---|---|---|
parse ( string $sourceCode, string $contextPathAndFilename = null, array $objectTreeUntilNow = [], boolean $buildPrototypeHierarchy = true ) : 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. |
Метод | Описание | |
---|---|---|
buildPrototypeHierarchy ( ) : void | Precalculate merged configuration for inherited prototypes. | |
getCurrentObjectPathPrefix ( ) : string | Returns the first part of an object path from the current object path stack which can be used to prefix a relative object path. | |
getNextTypoScriptLine ( ) : string | Get the next, unparsed line of TypoScript from this->currentSourceCodeLines and increase the pointer | |
getParsedObjectPath ( string $objectPath ) : array | Parse an object path specified as a string and returns an array. | |
getProcessedValue ( string $unparsedValue ) : mixed | Parses the given value (which may be a literal, variable or object type) and returns the evaluated result, including variables replaced by their actual value. | |
getValueFromObjectTree ( array $objectPathArray, array &$objectTree = null ) : mixed | Retrieves a value from a node in the object tree, specified by the object path array. | |
initialize ( ) : void | Initializes the TypoScript parser | |
parseComment ( string $typoScriptLine ) : void | Parses a line with comments or a line while parsing is in block comment mode. | |
parseConfinementBlock ( string $typoScriptLine, boolean $isOpeningConfinement ) : void | Parses a line which opens or closes a confinement | |
parseDeclaration ( string $typoScriptLine ) : void | Parses a parser declaration of the form "declarationtype: declaration". | |
parseInclude ( string $include ) : void | Parse an include file. Currently, we start a new parser object; but we could as well re-use the given one. | |
parseNamespaceDeclaration ( string $namespaceDeclaration ) : void | Parses a namespace declaration and stores the result in the namespace registry. | |
parseObjectDefinition ( string $typoScriptLine ) : void | Parses an object definition. | |
parseTypoScriptLine ( string $typoScriptLine ) : void | Parses one line of TypoScript | |
parseValueAssignment ( string $objectPath, string $value ) : void | Parses a value operation of the type "assignment". | |
parseValueCopy ( string $sourceObjectPath, string $targetObjectPath ) : void | Copies the object or value specified by sourcObjectPath and assigns it to targetObjectPath. | |
parseValueUnAssignment ( string $objectPath ) : void | Unsets the object, property or variable specified by the object path. | |
setValueInObjectTree ( array $objectPathArray, mixed $value, array &$objectTree = null ) : array | Assigns a value to a node or a property in the object tree, specified by the object path array. | |
unquoteString ( string $quotedValue ) : string | Removes escapings from a given argument string and trims the outermost quotes. |
protected buildPrototypeHierarchy ( ) : void | ||
Результат | void |
protected getCurrentObjectPathPrefix ( ) : string | ||
Результат | string | A part of an object path, ready to use as a prefix |
protected getNextTypoScriptLine ( ) : string | ||
Результат | string | next line of typoscript to parse |
protected getParsedObjectPath ( string $objectPath ) : array | ||
$objectPath | string | The object path to parse |
Результат | array | An object path array |
protected getProcessedValue ( string $unparsedValue ) : mixed | ||
$unparsedValue | string | The unparsed value |
Результат | mixed | The processed value |
protected initialize ( ) : void | ||
Результат | void |
public parse ( string $sourceCode, string $contextPathAndFilename = null, array $objectTreeUntilNow = [], boolean $buildPrototypeHierarchy = true ) : 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 |
$buildPrototypeHierarchy | boolean | Merge prototype configurations or not. Will be FALSE for includes to only do that once at the end. |
Результат | array | A TypoScript object tree, generated from the source code |
protected parseComment ( string $typoScriptLine ) : void | ||
$typoScriptLine | string | One line of TypoScript code |
Результат | void |
protected parseDeclaration ( string $typoScriptLine ) : void | ||
$typoScriptLine | string | One line of TypoScript code |
Результат | void |
protected parseInclude ( string $include ) : void | ||
$include | string | The include value, for example " FooBar" or " resource://....". Can also include wildcard mask for TypoScript globbing. |
Результат | void |
protected parseNamespaceDeclaration ( string $namespaceDeclaration ) : void | ||
$namespaceDeclaration | string | The namespace declaration, for example "neos = Neos.Neos" |
Результат | void |
protected parseObjectDefinition ( string $typoScriptLine ) : void | ||
$typoScriptLine | string | One line of TypoScript code |
Результат | void |
protected parseTypoScriptLine ( string $typoScriptLine ) : void | ||
$typoScriptLine | string | One line of TypoScript code |
Результат | void |
protected parseValueCopy ( string $sourceObjectPath, string $targetObjectPath ) : void | ||
$sourceObjectPath | string | Specifies the location in the object tree from where the object or value will be taken |
$targetObjectPath | string | Specifies the location in the object tree where the copy will be stored |
Результат | void |
protected parseValueUnAssignment ( string $objectPath ) : void | ||
$objectPath | string | The object path as a string |
Результат | void |
protected setValueInObjectTree ( array $objectPathArray, mixed $value, array &$objectTree = null ) : array | ||
$objectPathArray | array | The object path, specifying the node / property to set |
$value | mixed | The value to assign, is a non-array type or an array with __eelExpression etc. |
$objectTree | array | The current (sub-) tree, used internally - don't specify! |
Результат | array | The modified object tree |
protected unquoteString ( string $quotedValue ) : string | ||
$quotedValue | string | Value to unquote |
Результат | string | Unquoted value |
protected string $contextPathAndFilename | ||
Результат | string |
protected bool $currentBlockCommentState | ||
Результат | boolean |
protected int $currentLineNumber | ||
Результат | integer |
protected array $currentObjectPathStack | ||
Результат | array |
protected array $currentSourceCodeLines | ||
Результат | array |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Результат | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected array $objectTree | ||
Результат | array |
protected array $objectTypeNamespaces | ||
Результат | array |
public static array $reservedParseTreeKeys | ||
Результат | array |