PHP Класс Neos\Fusion\Core\Cache\CacheSegmentParser

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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