Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

API/Repository/Values/Content/Query/SortClause/DatePublished.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\API\Repository\Values\Content\Query\SortClause;
8
9 use eZ\Publish\API\Repository\Values\Content\Query;
10 use eZ\Publish\API\Repository\Values\Content\Query\SortClause;
11
15 class DatePublished extends SortClause
16 {
22 public function __construct($sortDirection = Query::SORT_ASC)
23 {
24 parent::__construct('date_published', $sortDirection);
25 }
26 }
eZ\Publish\API\Repository\Values\Content\Query\SortClause\DatePublished
Sets sort direction on the content creation date for a content query.
Definition: API/Repository/Values/Content/Query/SortClause/DatePublished.php:16
eZ\Publish\API\Repository\Values\Content\Query\SortClause\DatePublished\__construct
__construct($sortDirection=Query::SORT_ASC)
Constructs a new DatePublished SortClause.
Definition: API/Repository/Values/Content/Query/SortClause/DatePublished.php:22
eZ\Publish\API\Repository\Values\Content\Query\SortClause
This class is the base for SortClause classes, used to set sorting of content queries.
Definition: Content/Query/SortClause.php:16
eZ\Publish\API\Repository\Values\Content\Query
This class is used to perform a Content query.
Definition: API/Repository/Values/Content/Query.php:15
eZ\Publish\API\Repository\Values\Content\Query\SORT_ASC
const SORT_ASC
Definition: API/Repository/Values/Content/Query.php:16
eZ\Publish\API\Repository\Values\Content\Query\SortClause
Definition: API/Repository/Values/Content/Query/SortClause/ContentId.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.