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)

No description

Message
removeIfInvalid(RecentFavoriteTable $tableToRemove)

Removes recent/favorite tables that don't exist.

Message
remove(RecentFavoriteTable $tableToRemove)

No description

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)

No description

Parameters

RecentFavoriteTable $newTable

Return Value

Message

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)

No description

Parameters

RecentFavoriteTable $tableToRemove

Return Value

Message

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