BookmarkRepository
final class BookmarkRepository (View source)
Handles bookmarking SQL queries
Methods
Bookmark|false
createBookmark(string $sqlQuery, string $label, string $user, string $database, bool $shared = false)
Creates a Bookmark object from the parameters
array
getList(string $user, string|false $db = false)
Gets the list of bookmarks defined for the current database
Bookmark|null
get(string|null $user, int $id)
Retrieve a specific bookmark
Bookmark|null
Details
__construct(DatabaseInterface $dbi, Relation $relation)
No description
Bookmark|false
createBookmark(string $sqlQuery, string $label, string $user, string $database, bool $shared = false)
Creates a Bookmark object from the parameters
array
getList(string $user, string|false $db = false)
Gets the list of bookmarks defined for the current database
Bookmark|null
get(string|null $user, int $id)
Retrieve a specific bookmark
Bookmark|null
getByLabel(string $user, DatabaseName $db, string $label)
Retrieve a specific bookmark by its label