См. определение в файле dashboard.php строка 14
◆ addWidgetToDashboardsWithKey()
static addWidgetToDashboardsWithKey |
( |
| $boardKey, |
|
|
WidgetEntity | $widget ) |
|
static |
Add this widget to end of all boards with key $boardKey. will create new row and place there $widget.
- Аргументы
-
string | $boardKey | Board key. |
WidgetEntity | $widget | Widget entity. |
- Возвращает
- array
См. определение в файле dashboard.php строка 47
◆ getBoardModeIsDemo()
static getBoardModeIsDemo |
( |
| $boardKey | ) |
|
|
static |
- Аргументы
-
string | $board | Key Board key. |
- Возвращает
- bool
См. определение в файле dashboard.php строка 108
◆ getDashboardByKeyForCurrentUser()
static getDashboardByKeyForCurrentUser |
( |
| $boardKey | ) |
|
|
static |
Try find dashboard with key for this user, if not exist create it from copy of default board and return.
- Аргументы
-
string | $boardKey | Board key. |
- Возвращает
- DashboardEntity
См. определение в файле dashboard.php строка 22
◆ renewDefaultDashboard()
static renewDefaultDashboard |
( |
| $boardKey | ) |
|
|
static |
This method is for service. Find all default dashboards in product. Check if version change, then remove dashboard with all nested entities, and isnert new.
- Аргументы
-
string | $boardKey | Board key. |
- Исключения
-
- Возвращает
- void
См. определение в файле dashboard.php строка 77
◆ setBoardModeIsDemo()
static setBoardModeIsDemo |
( |
| $boardKey, |
|
|
| $mode ) |
|
static |
◆ updateBoardCustomDefaultMode()
static updateBoardCustomDefaultMode |
( |
| $boardKey, |
|
|
| $demo = false ) |
|
static |