PHP 클래스 Neos\FluidAdaptor\Core\Parser\TemplateProcessor\NamespaceDetectionTemplateProcessor

Compared to TYPO3Fluid that just removes all CDATA sections from the template before parsing, this pre processor finds CDATA and base65 encodes those areas of the template and surrounds that with a call to the Base64DecodeViewHelper which results in the the CDATA section to be present in the final output without any changes from fluid.
상속: extends TYPO3Fluid\Fluid\Core\Parser\TemplateProcessor\NamespaceDetectionTemplateProcessor
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 프로퍼티들

프로퍼티 타입 설명
$EXTENDED_SPLIT_PATTERN_TEMPLATE_DYNAMICTAGS Extension of the default pattern for dynamic tags including namespaces with uppercase letters.

공개 메소드들

메소드 설명
preProcessSource ( string $templateSource ) : string Pre-process the template source before it is returned to the TemplateParser or passed to the next TemplateProcessorInterface instance.
protectCDataSectionsFromParser ( string $templateSource ) : mixed Encodes areas enclosed in CDATA to prevent further parsing by the Fluid engine.
registerNamespacesFromTemplateSource ( string $templateSource ) : void Register all namespaces that are declared inside the template string
throwExceptionsForUnhandledNamespaces ( string $templateSource ) : void Throw an UnknownNamespaceException for any unknown and not ignored namespace inside the template string.

메소드 상세

preProcessSource() 공개 메소드

Pre-process the template source before it is returned to the TemplateParser or passed to the next TemplateProcessorInterface instance.
public preProcessSource ( string $templateSource ) : string
$templateSource string
리턴 string

protectCDataSectionsFromParser() 공개 메소드

CDATA sections will appear as they are in the final rendered result.
public protectCDataSectionsFromParser ( string $templateSource ) : mixed
$templateSource string
리턴 mixed

registerNamespacesFromTemplateSource() 공개 메소드

Register all namespaces that are declared inside the template string
public registerNamespacesFromTemplateSource ( string $templateSource ) : void
$templateSource string
리턴 void

throwExceptionsForUnhandledNamespaces() 공개 메소드

Throw an UnknownNamespaceException for any unknown and not ignored namespace inside the template string.
public throwExceptionsForUnhandledNamespaces ( string $templateSource ) : void
$templateSource string
리턴 void

프로퍼티 상세

$EXTENDED_SPLIT_PATTERN_TEMPLATE_DYNAMICTAGS 공개적으로 정적으로 프로퍼티

Extension of the default pattern for dynamic tags including namespaces with uppercase letters.
public static $EXTENDED_SPLIT_PATTERN_TEMPLATE_DYNAMICTAGS