Neos\Fusion\Core\Parser::parseObjectDefinition PHP 메소드

parseObjectDefinition() 보호된 메소드

Parses an object definition.
protected parseObjectDefinition ( string $typoScriptLine ) : void
$typoScriptLine string One line of TypoScript code
리턴 void
    protected function parseObjectDefinition($typoScriptLine)
    {
        $result = preg_match(self::SPLIT_PATTERN_OBJECTDEFINITION, $typoScriptLine, $matches);
        if ($result !== 1) {
            throw new Fusion\Exception('Invalid object definition "' . $typoScriptLine . '"', 1180548488);
        }
        $objectPath = $this->getCurrentObjectPathPrefix() . $matches['ObjectPath'];
        switch ($matches['Operator']) {
            case '=':
                $this->parseValueAssignment($objectPath, $matches['Value']);
                break;
            case '>':
                $this->parseValueUnAssignment($objectPath);
                break;
            case '<':
                $this->parseValueCopy($matches['Value'], $objectPath);
                break;
        }
        if (isset($matches['OpeningConfinement'])) {
            $this->parseConfinementBlock($matches['ObjectPath'], true);
        }
    }