PHP 클래스 Neos\Fusion\Core\Cache\CacheSegmentParser

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

보호된 프로퍼티들

프로퍼티 타입 설명
$cacheEntries array
$output string

공개 메소드들

메소드 설명
extractRenderedSegments ( string $content, string $randomCacheMarker = '' ) : string Parses the given content and extracts segments by searching for start end end markers. Those segments can later be retrieved via getCacheSegments() and stored in a cache.
getCacheSegments ( ) : array Returns an array with extracted content segments, including the type (if they can be cached or not) and tags to be used for their entries when the segments are stored in a persistent cache.
getOutput ( ) : string Returns the fully intact content as originally given to extractRenderedSegments() but without the markers. This content is suitable for being used as output for the user.

메소드 상세

extractRenderedSegments() 공개 메소드

This method also prepares a cleaned up output which can be retrieved later. See getOutput() for more information.
public extractRenderedSegments ( string $content, string $randomCacheMarker = '' ) : string
$content string The content to process, ie. the rendered content with some segment markers already in place
$randomCacheMarker string A random cache marker that should be used to "protect" against content containing special characters used to mark cache segments
리턴 string The outer content with placeholders instead of the actual content segments

getCacheSegments() 공개 메소드

Returns an array with extracted content segments, including the type (if they can be cached or not) and tags to be used for their entries when the segments are stored in a persistent cache.
public getCacheSegments ( ) : array
리턴 array

getOutput() 공개 메소드

Returns the fully intact content as originally given to extractRenderedSegments() but without the markers. This content is suitable for being used as output for the user.
public getOutput ( ) : string
리턴 string

프로퍼티 상세

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

protected array $cacheEntries
리턴 array

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

protected string $output
리턴 string