См. определение в файле widget.php строка 21
◆ __construct()
Widget constructor.
Переопределяет метод предка Model.
См. определение в файле widget.php строка 53
◆ addReportHandler()
Attach report handler to widget handler.
- Аргументы
-
BaseReport | $reportHandler | Report handler. |
- Возвращает
- void
См. определение в файле widget.php строка 175
◆ buildPseudoWidget()
static buildPseudoWidget |
( |
| $params | ) |
|
|
static |
If parameter start with pseudo_ then create new widget. Else try to load widget by gid, and change view key.
- Аргументы
-
array | $params | Parameters to build pseudo widget. [viewKey => 'number', widgetGId => 'pseudo_widget_gid']. |
- Возвращает
- Widget
См. определение в файле widget.php строка 491
◆ delete()
Delete widget if it is not pattern.
- Возвращает
- bool|null
Переопределяет метод предка Model.
См. определение в файле widget.php строка 145
◆ deletePatternWidget()
Delete pattern widget.
- Возвращает
- bool|null
См. определение в файле widget.php строка 164
◆ getBoardId()
◆ getCategoryKey()
◆ getChildWidgets()
◆ getCopyForCurrentUser()
getCopyForCurrentUser |
( |
| ) |
|
Perform copy of widget with copies of nested relations.
- Возвращает
- Widget
См. определение в файле widget.php строка 322
◆ getCurrentUserPatternedWidgets()
static getCurrentUserPatternedWidgets |
( |
| ) |
|
|
static |
◆ getCurrentUserWidgetByGId()
static getCurrentUserWidgetByGId |
( |
| $widgetGId | ) |
|
|
static |
Get current user widget by widget id with nested relations,
- Аргументы
-
string | $widgetGId | Widget gId. |
- Возвращает
- Widget
См. определение в файле widget.php строка 452
◆ getFilterId()
construct and return filter name base on widget id.
- Возвращает
- string
См. определение в файле widget.php строка 312
◆ getGId()
◆ getMapAttributes()
static getMapAttributes |
( |
| ) |
|
|
static |
Returns the list of pair for mapping data and object properties. Key is field in DataManager, value is object property.
- Возвращает
- array
Переопределяет метод предка Model.
См. определение в файле widget.php строка 73
◆ getMapReferenceAttributes()
static getMapReferenceAttributes |
( |
| ) |
|
|
static |
- Возвращает
- array
Переопределяет метод предка Model.
См. определение в файле widget.php строка 92
◆ getOwnerId()
◆ getParentWidget()
◆ getParentWidgetId()
◆ getReportByGId()
getReportByGId |
( |
| $reportGId | ) |
|
- Аргументы
-
- Возвращает
- Report|null
См. определение в файле widget.php строка 256
◆ getReports()
◆ getReportsGidKeyed()
Return report list, key in list get from gId.
- Возвращает
- Report[]
См. определение в файле widget.php строка 241
◆ getRow()
- Возвращает
- DashboardRow
См. определение в файле widget.php строка 607
◆ getRowId()
◆ getTableClassName()
static getTableClassName |
( |
| ) |
|
|
static |
- Возвращает
- string
Переопределяет метод предка Model.
См. определение в файле widget.php строка 62
◆ getViewKey()
◆ getWeight()
◆ getWidgetByGId()
static getWidgetByGId |
( |
| $widgetGId | ) |
|
|
static |
Load widget with nested relations by widget gId.
- Аргументы
-
string | $widgetGId | Widget gId. |
- Возвращает
- Widget
См. определение в файле widget.php строка 516
◆ getWidgetById()
static getWidgetById |
( |
| $widgetId | ) |
|
|
static |
Load and return widget by widget id.
- Аргументы
-
string | $widgetId | Widget id. |
- Возвращает
- static
См. определение в файле widget.php строка 436
◆ getWidgetByIdWithReports()
static getWidgetByIdWithReports |
( |
| $widgetId | ) |
|
|
static |
Load widget with nested relations by widget Id.
- Аргументы
-
string | $widgetId | Widget id. |
- Возвращает
- Widget
См. определение в файле widget.php строка 532
◆ getWidgetClass()
◆ getWidgetConfigurations()
static getWidgetConfigurations |
( |
| $widgetId | ) |
|
|
static |
Load widget and get configurations of loaded widget.
- Аргументы
-
- Возвращает
- Configuration[]
См. определение в файле widget.php строка 423
◆ getWidgetHandler()
getWidgetHandler |
( |
| $isRuntime = false | ) |
|
- Аргументы
-
- Возвращает
- BaseWidget
См. определение в файле widget.php строка 192
◆ getWidgetsByBoard()
static getWidgetsByBoard |
( |
| $boardId | ) |
|
|
static |
Get Widget by board id. Load all nested relation.
- Аргументы
-
- Возвращает
- static[]
См. определение в файле widget.php строка 379
◆ isPattern()
◆ removeCurrentUserWidgetByGId()
static removeCurrentUserWidgetByGId |
( |
| $widgetGId | ) |
|
|
static |
Remove current user widget by gId.
- Аргументы
-
string | $widgetGId | Widget gId. |
- Возвращает
- boolean
См. определение в файле widget.php строка 547
◆ setBoardId()
Setter for board id.
- Аргументы
-
- Возвращает
- void
См. определение в файле widget.php строка 283
◆ setCategoryKey()
setCategoryKey |
( |
| $categoryKey | ) |
|
Attach widget to category.
- См. также
- Category.
- Аргументы
-
string | $categoryKey | Category key. |
- Возвращает
- void
См. определение в файле widget.php строка 722
◆ setGId()
Setter for gId.
- Аргументы
-
- Возвращает
- void
См. определение в файле widget.php строка 702
◆ setIsPattern()
setIsPattern |
( |
| $isPattern | ) |
|
Setter for pattern marker.
- Аргументы
-
bool | $isPattern | Marker to set is pattern or not. |
- Возвращает
- void
См. определение в файле widget.php строка 637
◆ setOwnerId()
Attach widget to some user.
- Аргументы
-
- Возвращает
- void
См. определение в файле widget.php строка 760
◆ setParentWidget()
setParentWidget |
( |
| $parentWidget | ) |
|
parent Widget entity.
- Аргументы
-
Widget | $parentWidget | Widget entity. |
- Возвращает
- void
См. определение в файле widget.php строка 656
◆ setParentWidgetId()
setParentWidgetId |
( |
| $parentWidgetId | ) |
|
Setter for parent widget id.
- Аргументы
-
mixed | $parentWidgetId | Parent widget id. |
- Возвращает
- void
См. определение в файле widget.php строка 683
◆ setRow()
Setter for row.
- Аргументы
-
DashboardRow | $row | Row Entity where place widget. |
- Возвращает
- void
См. определение в файле widget.php строка 618
◆ setRowId()
Setter for row id.
- Аргументы
-
mixed | $rowId | Value of row id. |
- Возвращает
- void
См. определение в файле widget.php строка 741
◆ setViewKey()
Setter for view key.
- Аргументы
-
- Возвращает
- void
См. определение в файле widget.php строка 302
◆ setWeight()
Setter for widget position.
- Аргументы
-
string | $weight | Position of widget in row. |
- Возвращает
- void
См. определение в файле widget.php строка 579
◆ setWidgetClass()
setWidgetClass |
( |
| $widgetClass | ) |
|
Widget handler class name.
- См. также
- BaseWidget::getClassName().
- Аргументы
-
string | $widgetClass | Widget handler class name. |
- Возвращает
- void
См. определение в файле widget.php строка 599
◆ setWidgetHandler()
Setter for widget handler. Set class name and set widget handler.
- Аргументы
-
BaseWidget | $widgetHandler | Widget handler. |
- Возвращает
- void
См. определение в файле widget.php строка 222
◆ $boardId
◆ $categoryKey
◆ $childWidgets
Widget[] $childWidgets = array() |
|
protected |
◆ $gId
◆ $isPattern
◆ $ownerId
◆ $parentWidget
◆ $parentWidgetId
◆ $reports
◆ $row
◆ $rowId
◆ $viewKey
◆ $weight
◆ $widgetClass
◆ $widgetHandler