| @@ 63-68 (lines=6) @@ | ||
| 60 | ], |
|
| 61 | 'index' => [ |
|
| 62 | 'class' => IndexAction::class, |
|
| 63 | 'on beforePerform' => function (Event $event) { |
|
| 64 | /** @var \hipanel\actions\SearchAction $action */ |
|
| 65 | $action = $event->sender; |
|
| 66 | $dataProvider = $action->getDataProvider(); |
|
| 67 | $dataProvider->query->joinWith('ips')->joinWith('objects_count'); |
|
| 68 | }, |
|
| 69 | 'filterStorageMap' => [ |
|
| 70 | 'ip' => 'hosting.ip.ip', |
|
| 71 | 'state' => 'hosting.service.state', |
|
| @@ 85-90 (lines=6) @@ | ||
| 82 | ], |
|
| 83 | 'view' => [ |
|
| 84 | 'class' => ViewAction::class, |
|
| 85 | 'on beforeSave' => function (Event $event) { |
|
| 86 | /** @var \hipanel\actions\SearchAction $action */ |
|
| 87 | $action = $event->sender; |
|
| 88 | $dataProvider = $action->getDataProvider(); |
|
| 89 | $dataProvider->query->joinWith('ips')->joinWith('object_count'); |
|
| 90 | } |
|
| 91 | ], |
|
| 92 | 'create' => [ |
|
| 93 | 'class' => SmartCreateAction::class, |
|