BookmarkRepository

readonly class \TYPO3\CMS\Backend\Backend\Bookmark\BookmarkRepository

Table of Contents

Constants

GROUP_TABLE_NAME  : mixed = 'sys_be_shortcuts_group'
TABLE_NAME  : mixed = 'sys_be_shortcuts'

Properties

$connectionPool  : ConnectionPool

Methods

__construct()  : mixed
createGroup()  : string|null
delete()  : int
deleteGroup()  : int
deleteMultiple()  : int
exists()  : bool
findById()  : array|null
findByIds()  : array<int, array>
findByUser()  : array
findGroupByUuid()  : array|null
findGroupsByUser()  : array
insert()  : int|false
moveBookmarksFromGroupToDefault()  : int
moveToGroup()  : int
reorderGroups()  : void
update()  : int
updateGroup()  : int
updateSorting()  : int

Constants

GROUP_TABLE_NAME

protected mixed GROUP_TABLE_NAME = 'sys_be_shortcuts_group'

TABLE_NAME

protected mixed TABLE_NAME = 'sys_be_shortcuts'

Properties

Methods

createGroup()

public createGroup(int $userId, string $label) : string|null

Parameters

$userId : int
$label : string

Return values

string|null

delete()

public delete(int $id[, int|null $userId = null ]) : int

Parameters

$id : int
$userId : int|null = null

Return values

int

deleteGroup()

public deleteGroup(string $uuid) : int

Parameters

$uuid : string

Return values

int

deleteMultiple()

public deleteMultiple(int[] $ids, int $userId) : int

Parameters

$ids : int[]
$userId : int

Return values

int

exists()

public exists(int $userId, string $routeIdentifier, string $arguments) : bool

Parameters

$userId : int
$routeIdentifier : string
$arguments : string

Return values

bool

findById()

public findById(int $id) : array|null

Parameters

$id : int

Return values

array|null

findByIds()

public findByIds(array<int, int> $ids) : array<int, array>

Parameters

$ids : array<int, int>

Return values

array<int, array> —

Indexed by bookmark ID

findByUser()

public findByUser(int $userId) : array

Parameters

$userId : int

Return values

array

findGroupByUuid()

public findGroupByUuid(string $uuid) : array|null

Parameters

$uuid : string

Return values

array|null

findGroupsByUser()

public findGroupsByUser(int $userId) : array

Parameters

$userId : int

Return values

array

insert()

public insert(int $userId, string $routeIdentifier, string $arguments, string $title) : int|false

Parameters

$userId : int
$routeIdentifier : string
$arguments : string
$title : string

Return values

int|false —

The new bookmark ID or false on failure

moveBookmarksFromGroupToDefault()

public moveBookmarksFromGroupToDefault(string $uuid, int $userId) : int

Parameters

$uuid : string
$userId : int

Return values

int

moveToGroup()

public moveToGroup(int[] $ids, int $userId, int|string $groupId[, bool $allowGlobalGroups = true ]) : int

Parameters

$ids : int[]
$userId : int
$groupId : int|string
$allowGlobalGroups : bool = true

Return values

int

reorderGroups()

public reorderGroups(array<int, string> $uuids, int $userId) : void

Parameters

$uuids : array<int, string>
$userId : int

update()

public update(int $id, int|null $userId, string $title, int|string $groupId[, bool $allowGlobalGroups = true ]) : int

Parameters

$id : int
$userId : int|null
$title : string
$groupId : int|string
$allowGlobalGroups : bool = true

Return values

int

updateGroup()

public updateGroup(string $uuid, string $label) : int

Parameters

$uuid : string
$label : string

Return values

int

updateSorting()

public updateSorting(int $id, int $userId, int $sorting) : int

Parameters

$id : int
$userId : int
$sorting : int

Return values

int
On this page