Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/11.4' into 11.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 committed Oct 4, 2024
2 parents 6a40b74 + 40d5554 commit 15080bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/03_Documents/09_Working_with_PHP_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ If you'd like to get also all the unpublished documents, set the following flag:

| Method | Arguments | Description |
|-------------------------|-------------------------------------|---------------------------------------------------------------------------------------------|
| `getTotalCount()` | | Returns total number of selected rows. |
| `getCount()` | | Returns total number of selected rows. |
| `getTotalCount()` | | Returns total number of selected rows (excluding offset and limit). |
| `getPaginatorAdapter()` | | List implements `\Iterator`, you could use the list as a paginator. |
| `getItems()` | int $offset, int $itemsCountPerPage | as arguments you have to specify the limit of rows and the offset. |
| `loadIdList()` | | Returns complete array with id as a row. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ The `ClassificationStore::getGroups()` method returns an array of `Group` object

```php
/** @var \Pimcore\Model\DataObject\Classificationstore $classificationStore */
$classificationStore = $dataObject->getClassificationStoreFieldName();
$classificationStore = $dataObject->get<YOUR_CLASSIFICATION_FIELD>();

foreach ($classificationStore->getGroups() as $group) {
var_dump($group->getConfiguration()->getName());
Expand Down

0 comments on commit 15080bb

Please sign in to comment.