class RecentFavoriteTables (View source)

Handles the recently used and favorite tables.

Methods

__destruct()

No description

getInstance(TableType $type)

Returns class instance.

array
getTables()

Returns the recent/favorite tables array

string
getHtmlList()

Return HTML ul.

Message
add(RecentFavoriteTable $newTable)

Add recently used or favorite tables.

Message
removeIfInvalid(RecentFavoriteTable $tableToRemove)

Removes recent/favorite tables that don't exist.

Message
remove(RecentFavoriteTable $tableToRemove)

Remove favorite tables.

bool
contains(RecentFavoriteTable $currentTable)

Function to check if a table is already in favorite list.

string
getHtmlSyncFavoriteTables()

Generate Html for sync Favorite tables anchor. (from localStorage to pmadb)

Details

__destruct()

No description

static RecentFavoriteTables getInstance(TableType $type)

Returns class instance.

Parameters

TableType $type

Return Value

RecentFavoriteTables

array getTables()

Returns the recent/favorite tables array

Return Value

array

string getHtmlList()

Return HTML ul.

Return Value

string

Message add(RecentFavoriteTable $newTable)

Add recently used or favorite tables.

Parameters

RecentFavoriteTable $newTable

Return Value

Message

True if success, Message if not

Message removeIfInvalid(RecentFavoriteTable $tableToRemove)

Removes recent/favorite tables that don't exist.

Parameters

RecentFavoriteTable $tableToRemove

Return Value

Message

True if invalid and removed, False if not invalid, Message if error while removing

Message remove(RecentFavoriteTable $tableToRemove)

Remove favorite tables.

Parameters

RecentFavoriteTable $tableToRemove

Return Value

Message

True if success, Message if not

bool contains(RecentFavoriteTable $currentTable)

Function to check if a table is already in favorite list.

Parameters

RecentFavoriteTable $currentTable

Return Value

bool

string getHtmlSyncFavoriteTables()

Generate Html for sync Favorite tables anchor. (from localStorage to pmadb)

Return Value

string