Handler
Handler.php
:
14
Interface
Methods¶
create()
¶
Handler.php
:
23
Create a new bookmark.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | CreateStruct | - | - |
Return values
delete()
¶
Handler.php
:
32
Delete a bookmark.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $bookmarkId | int | - | - |
Tags
loadByUserIdAndLocationId()
¶
Handler.php
:
42
Get bookmark by user id and location id.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $userId | int | - | - |
| $locationIds | array<string|int, mixed> | - | - |
Return values
array<string|int, Bookmark>
loadUserIdsByLocation()
¶
Handler.php
:
52
Get user ids who have bookmarked given location.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $location | Location | - | - |
Return values
array<string|int, int>
locationSwapped()
¶
Handler.php
:
62
Notifies the underlying engine that a location was swapped.
|
|
|
This method triggers the change of the bookmarked locations.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $location1Id | int | - |
ID of first location |
| $location2Id | int | - |
ID of second location |