-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ContentName search criterion added * mkdocs updated * Fixes after review * Fixes * Fix * typo * Fix
- Loading branch information
1 parent
827dbb7
commit 8d963d4
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ContentName Criterion | ||
|
||
The [`ContentName` Search Criterion](https://github.com/ibexa/core/blob/main/src/contracts/Repository/Values/Content/Query/Criterion/ContentName.php) | ||
searches for content by its name. | ||
|
||
## Arguments | ||
|
||
- `value` - string representing the content name, the wildcard character `*` can be used for partial search | ||
|
||
## Example | ||
|
||
### PHP | ||
|
||
``` php | ||
$query->query = new Criterion\ContentName('*phone'); | ||
``` | ||
|
||
### REST API | ||
|
||
=== "XML" | ||
|
||
```xml | ||
<Query> | ||
<Filter> | ||
<ContentNameCriterion>*phone</ContentNameCriterion> | ||
</Filter> | ||
</Query> | ||
``` | ||
|
||
=== "JSON" | ||
|
||
```json | ||
"Query": { | ||
"Filter": { | ||
"ContentNameCriterion": "*phone" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters