ApplyVersionFilters deprecated
class ApplyVersionFilters (View source)
deprecated
Methods
public
__construct()
Use this as a fallback where resolver results aren't queried as a DataList, but rather use DataObject::get_one(). Example: SiteTree::get_by_link().
Details
__construct()
Use this as a fallback where resolver results aren't queried as a DataList, but rather use DataObject::get_one(). Example: SiteTree::get_by_link().
Note that the 'status' and 'version' modes are not supported. Wrap this call in Versioned::withVersionedMode() in order to avoid side effects.
applyToReadingState($versioningArgs)
No description
applyToList(DataList $list, array $versioningArgs)
No description
validateArgs($versioningArgs)
No description
protected bool
isValidDate(string $date)
Returns true if date is in proper YYYY-MM-DD format