Method |
Description |
|
__construct ( ) |
|
|
createNewDashboardForUser ( $login, $name, $layout ) |
Creates a new dashboard for the current user
User needs to be logged in |
|
createOrUpdateDashboard ( $login, $idDashboard, $layout ) |
Saves the layout as default |
|
deleteAllLayoutsForUser ( $userLogin ) |
|
|
deleteDashboardForUser ( $idDashboard, $login ) |
Removes the dashboard with the given id |
|
getAllDashboardsForUser ( $login ) |
|
|
getLayoutForUser ( string $login, integer $idDashboard ) : boolean | string |
Returns the layout in the DB for the given user, or false if the layout has not been set yet. |
|
install ( ) |
|
|
replaceDashboardWidgets ( $dashboardLayout, array $oldWidgets, array $newWidgets ) |
Replaces widgets on the given dashboard layout with other ones |
|
uninstall ( ) |
|
|
updateDashboardName ( string $login, integer $idDashboard, string $name ) |
Updates the name of a dashboard |
|
updateLayoutForUser ( string $login, integer $idDashboard, string $layout ) |
Records the layout in the DB for the given user. |
|