ShoppingListServiceInterface
ShoppingListServiceInterface.php
:
22
Interface
Methods¶
addEntries()
¶
ShoppingListServiceInterface.php
:
70
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $shoppingList | ShoppingListInterface | - | - |
| $entryAddStructs | array<string|int, EntryAddStruct> | - | - |
Return values
Tags
clearShoppingList()
¶
ShoppingListServiceInterface.php
:
62
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $shoppingList | ShoppingListInterface | - | - |
Return values
Tags
createShoppingList()
¶
ShoppingListServiceInterface.php
:
42
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | ShoppingListCreateStruct | - | - |
Return values
Tags
deleteShoppingList()
¶
ShoppingListServiceInterface.php
:
57
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $shoppingList | ShoppingListInterface | - | - |
Tags
findShoppingLists()
¶
ShoppingListServiceInterface.php
:
36
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | ShoppingListQuery|null | null | - |
Return values
ShoppingListCollectionInterface
getEntry()
¶
ShoppingListServiceInterface.php
:
34
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
Tags
getOrCreateDefaultShoppingList()
¶
ShoppingListServiceInterface.php
:
106
Returns the default shopping list for the current user.
|
|
|
If no default list exists, it will be created automatically.
Return values
Tags
getShoppingList()
¶
ShoppingListServiceInterface.php
:
28
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
Tags
moveEntries()
¶
ShoppingListServiceInterface.php
:
93
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $targetShoppingList | ShoppingListInterface | - | - |
| $entries | array<string|int, ShoppingListEntryInterface> | - | - |
| $copy | bool | false |
If true, copies entries without deleting from source. If false (default), moves entries (deletes from source). |
Tags
removeEntries()
¶
ShoppingListServiceInterface.php
:
81
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $shoppingList | ShoppingListInterface | - | - |
| $entries | array<string|int, ShoppingListEntryInterface> | - | - |
Return values
Tags
updateShoppingList()
¶
ShoppingListServiceInterface.php
:
48
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $shoppingList | ShoppingListInterface | - | - |
| $updateStruct | ShoppingListUpdateStruct | - | - |