PHP Класс Neos\ContentRepository\Eel\FlowQueryOperations\CacheLifetimeOperation

To include already hidden nodes (with a hiddenBeforeDateTime value in the future) in the result, also invisible nodes have to be included in the context. This can be achieved using the "context" operation before fetching child nodes. Example: q(node).context({'invisibleContentShown': true}).children().cacheLifetime()
Наследование: extends Neos\Eel\FlowQuery\Operations\AbstractOperation
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$final boolean
$now Neos\Flow\Utility\Now
$priority integer
$shortName string

Открытые методы

Метод Описание
canEvaluate ( $context ) : boolean
evaluate ( FlowQuery $flowQuery, array $arguments ) : integer

Описание методов

canEvaluate() публичный Метод

public canEvaluate ( $context ) : boolean
Результат boolean TRUE if the operation can be applied onto the $context, FALSE otherwise

evaluate() публичный Метод

public evaluate ( FlowQuery $flowQuery, array $arguments ) : integer
$flowQuery Neos\Eel\FlowQuery\FlowQuery The FlowQuery object
$arguments array None
Результат integer The cache lifetime in seconds or NULL if either no content collection was given or no child node had a "hiddenBeforeDateTime" or "hiddenAfterDateTime" property set

Описание свойств

$final защищенное статическое свойство

protected static bool $final
Результат boolean

$now защищенное свойство

protected Now,Neos\Flow\Utility $now
Результат Neos\Flow\Utility\Now

$priority защищенное статическое свойство

protected static int $priority
Результат integer

$shortName защищенное статическое свойство

protected static string $shortName
Результат string