You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/search/search_in_trash_reference/trash_criteria.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,27 +6,25 @@ month_change: false
6
6
7
7
# Trash Search Criteria reference
8
8
9
-
Search Criteria for trash are found in the [`Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion`](/api/php_api/php_api_reference/namespaces/ibexa-contracts-core-repository-values-content-query-criterion.html) namespace, implementing the [CriterionInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-CriterionInterface.html) interface:
10
-
11
9
| Criterion | Description |
12
10
|---|---|
13
-
|[ContentName](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-ContentName.html)| Find content items by their name |
14
-
|[ContentTypeId](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-ContentTypeId.html)| Find content items by their Content Type ID |
15
-
|[DateMetadata](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-DateMetadata.html)| Find content items by metadata dates. Can use the additional exclusive target `DateMetadata::TRASHED` for trash-specific searches |
16
-
|[MatchAll](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-MatchAll.html)| Match all content items (no filtering) |
17
-
|[MatchNone](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-MatchNone.html)| Match no content items (filter out all) |
18
-
|[SectionId](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-SectionId.html)| Find content items by their Section ID |
19
-
|[UserMetadata](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-UserMetadata.html)| Find content items by user metadata (creator or modifier) |
11
+
|[ContentName](../contentname_criterion.md)| Find content items by their name |
12
+
|[ContentTypeId](../contenttypeid_criterion.md)| Find content items by their Content Type ID |
13
+
|[DateMetadata](../datemetadata_criterion.md)| Find content items by metadata dates. Can use the additional exclusive target `DateMetadata::TRASHED` for trash-specific searches |
14
+
|[MatchAll](../matchall_criterion.md)| Match all content items (no filtering) |
15
+
|[MatchNone](../matchnone_criterion.md)| Match no content items (filter out all) |
16
+
|[SectionId](../sectionid_criterion.md)| Find content items by their Section ID |
17
+
|[UserMetadata](../usermetadata_criterion.md)| Find content items by user metadata (creator or modifier) |
20
18
21
19
## Logical operators
22
20
23
21
| Operator | Description |
24
22
|---|---|
25
-
|[LogicalAnd](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-LogicalAnd.html)| Composite criterion to group multiple criteria using the AND condition |
26
-
|[LogicalNot](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-LogicalNot.html)| Negate the result of the wrapped criterion |
27
-
|[LogicalOr](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Criterion-LogicalOr.html)| Composite criterion to group multiple criteria using the OR condition |
23
+
|[LogicalAnd](../logicaland_criterion.md)| Composite criterion to group multiple criteria using the AND condition |
24
+
|[LogicalNot](../logicalor_criterion.md)| Negate the result of the wrapped criterion |
25
+
|[LogicalOr](../logicalor_criterion.md)| Composite criterion to group multiple criteria using the OR condition |
28
26
29
-
You can use these criteria to build complex search queries for content items that are held in trash. The search is performed using the [`Ibexa\Contracts\Core\Repository\TrashService::findTrashItems`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-TrashService.html#method_findTrashItems) method.
27
+
You can use these criteria to build complex search queries for content items that are held in trash.
30
28
31
29
The following example shows how you can use the criteria to find trashed content items:
Copy file name to clipboardExpand all lines: docs/search/search_in_trash_reference/trash_sort_clauses.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,16 @@ month_change: false
6
6
7
7
# Trash Search Sort Clauses reference
8
8
9
-
Sort Clauses for trash are found in the [`Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause`](/api/php_api/php_api_reference/namespaces/ibexa-contracts-core-repository-values-content-query-sortclause.html) namespace, implementing the [SortClauseInterface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClauseInterface.html) interface:
10
-
11
9
| Name | Description |
12
10
| --- | --- |
13
-
|[ContentName](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-ContentName.html)| Sort by content item name |
14
-
|[ContentTypeName](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-ContentTypeName.html)| Sort by Content Type name |
15
-
|[DateTrashed](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-DateTrashed.html)| Sort by the date when content was moved to trash (exclusive to trash search) |
16
-
|[Depth](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-Depth.html)| Sort by the original depth in the content tree |
17
-
|[Path](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-Path.html)| Sort by the original path in the content tree |
18
-
|[Priority](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-Priority.html)| Sort by content item priority |
19
-
|[SectionName](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-SectionName.html)| Sort by Section name |
20
-
|[UserLogin](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-SortClause-UserLogin.html)| Sort by the login of the user who created the content |
11
+
|[ContentName](../contentname_sort_clause.md)| Sort by content item name |
12
+
|[ContentTypeName](../contenttypename_sort_clause.md)| Sort by Content Type name |
13
+
|[DateTrashed](../datetrashed_sort_clause.md)| Sort by the date when content was moved to trash (exclusive to trash search) |
14
+
|[Depth](../depth_sort_clause.md)| Sort by the original depth in the content tree |
15
+
|[Path](../path_sort_clause.md)| Sort by the original path in the content tree |
16
+
|[Priority](../priority_sort_clause.md)| Sort by content item priority |
17
+
|[SectionName](../sectionname_sort_clause.md)| Sort by Section name |
18
+
|[UserLogin](../userlogin_sort_clause.md)| Sort by the login of the user who created the content |
21
19
22
20
The following example shows how to use sort clauses to order the searched trash items:
23
21
@@ -45,4 +43,4 @@ The returned trash items are sorted by:
45
43
- content name (ascending - alphabetically)
46
44
- Content Type name (ascending - alphabetically)
47
45
48
-
You can change the default sorting order by using the `Query::SORT_ASC` and `Query::SORT_DESC` constants from [`Query`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query.html#constants).
46
+
You can change the default sorting order by using the `Query::SORT_ASC` and `Query::SORT_DESC` constants.
0 commit comments