PHP Class 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()
Inheritance: extends Neos\Eel\FlowQuery\Operations\AbstractOperation
Datei anzeigen Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$final boolean
$now Neos\Flow\Utility\Now
$priority integer
$shortName string

Public Methods

Method Description
canEvaluate ( $context ) : boolean
evaluate ( FlowQuery $flowQuery, array $arguments ) : integer

Method Details

canEvaluate() public method

public canEvaluate ( $context ) : boolean
return boolean TRUE if the operation can be applied onto the $context, FALSE otherwise

evaluate() public method

public evaluate ( FlowQuery $flowQuery, array $arguments ) : integer
$flowQuery Neos\Eel\FlowQuery\FlowQuery The FlowQuery object
$arguments array None
return 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

Property Details

$final protected_oe static_oe property

protected static bool $final
return boolean

$now protected_oe property

protected Now,Neos\Flow\Utility $now
return Neos\Flow\Utility\Now

$priority protected_oe static_oe property

protected static int $priority
return integer

$shortName protected_oe static_oe property

protected static string $shortName
return string