Copied!

Handler

Handler.php : 14
Interface

Methods

publiccreate()

Handler.php : 23

Create a new bookmark.

public create(CreateStruct $createStruct) : Bookmark

Parameters

Name Type Default value Description
$createStruct CreateStruct - -

Return values

Bookmark

publicdelete()

Handler.php : 32

Delete a bookmark.

public delete(int $bookmarkId) : void

Parameters

Name Type Default value Description
$bookmarkId int - -
Tags
Throws
NotFoundException

publicloadByUserIdAndLocationId()

Handler.php : 42

Get bookmark by user id and location id.

public loadByUserIdAndLocationId(int $userId, array<string|int, mixed> $locationIds) : array<string|int, Bookmark>

Parameters

Name Type Default value Description
$userId int - -
$locationIds array<string|int, mixed> - -

Return values

array<string|int, Bookmark>

publicloadUserIdsByLocation()

Handler.php : 52

Get user ids who have bookmarked given location.

public loadUserIdsByLocation(Location $location) : array<string|int, int>

Parameters

Name Type Default value Description
$location Location - -

Return values

array<string|int, int>

publiclocationSwapped()

Handler.php : 62

Notifies the underlying engine that a location was swapped.

public locationSwapped(int $location1Id, int $location2Id) : void

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