| @@ 8-30 (lines=23) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class BackupingRepresentations extends RepresentationCollection |
|
| 9 | { |
|
| 10 | protected function fillRepresentations() |
|
| 11 | { |
|
| 12 | $this->representations = array_filter([ |
|
| 13 | 'common' => [ |
|
| 14 | 'label' => Yii::t('hipanel', 'common'), |
|
| 15 | 'columns' => [ |
|
| 16 | 'checkbox', |
|
| 17 | 'main', |
|
| 18 | 'client', |
|
| 19 | 'account', |
|
| 20 | 'server', |
|
| 21 | 'backup_count', |
|
| 22 | 'type', |
|
| 23 | 'state_label', |
|
| 24 | 'backup_last', |
|
| 25 | 'total_du', |
|
| 26 | ], |
|
| 27 | ], |
|
| 28 | ]); |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||
| @@ 8-28 (lines=21) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class DbRepresentations extends RepresentationCollection |
|
| 9 | { |
|
| 10 | protected function fillRepresentations() |
|
| 11 | { |
|
| 12 | $this->representations = array_filter([ |
|
| 13 | 'common' => [ |
|
| 14 | 'label' => Yii::t('hipanel', 'common'), |
|
| 15 | 'columns' => [ |
|
| 16 | 'checkbox', |
|
| 17 | 'name', |
|
| 18 | 'account', |
|
| 19 | 'server', |
|
| 20 | 'client_id', |
|
| 21 | 'seller_id', |
|
| 22 | 'description', |
|
| 23 | 'state', |
|
| 24 | ], |
|
| 25 | ], |
|
| 26 | ]); |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||
| @@ 8-29 (lines=22) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class HdomainRepresentations extends RepresentationCollection |
|
| 9 | { |
|
| 10 | protected function fillRepresentations() |
|
| 11 | { |
|
| 12 | $this->representations = array_filter([ |
|
| 13 | 'common' => [ |
|
| 14 | 'label' => Yii::t('hipanel', 'common'), |
|
| 15 | 'columns' => [ |
|
| 16 | 'checkbox', |
|
| 17 | 'hdomain_with_aliases', |
|
| 18 | 'client', |
|
| 19 | 'seller', |
|
| 20 | 'account', |
|
| 21 | 'server', |
|
| 22 | 'state', |
|
| 23 | 'ip', |
|
| 24 | 'service', |
|
| 25 | ], |
|
| 26 | ], |
|
| 27 | ]); |
|
| 28 | } |
|
| 29 | } |
|
| 30 | ||
| @@ 8-28 (lines=21) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class MailRepresentations extends RepresentationCollection |
|
| 9 | { |
|
| 10 | protected function fillRepresentations() |
|
| 11 | { |
|
| 12 | $this->representations = array_filter([ |
|
| 13 | 'common' => [ |
|
| 14 | 'label' => Yii::t('hipanel', 'common'), |
|
| 15 | 'columns' => [ |
|
| 16 | 'checkbox', |
|
| 17 | 'mail', |
|
| 18 | 'type', |
|
| 19 | 'forwards', |
|
| 20 | 'client', |
|
| 21 | 'seller', |
|
| 22 | 'server', |
|
| 23 | 'state', |
|
| 24 | ], |
|
| 25 | ], |
|
| 26 | ]); |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||
| @@ 8-28 (lines=21) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class RequestRepresentations extends RepresentationCollection |
|
| 9 | { |
|
| 10 | protected function fillRepresentations() |
|
| 11 | { |
|
| 12 | $this->representations = array_filter([ |
|
| 13 | 'common' => [ |
|
| 14 | 'label' => Yii::t('hipanel', 'common'), |
|
| 15 | 'columns' => [ |
|
| 16 | 'checkbox', |
|
| 17 | 'classes', |
|
| 18 | 'server', |
|
| 19 | 'account', |
|
| 20 | 'actions', |
|
| 21 | 'object', |
|
| 22 | 'time', |
|
| 23 | 'state', |
|
| 24 | ], |
|
| 25 | ], |
|
| 26 | ]); |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||
| @@ 8-28 (lines=21) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class ServiceRepresentations extends RepresentationCollection |
|
| 9 | { |
|
| 10 | protected function fillRepresentations() |
|
| 11 | { |
|
| 12 | $this->representations = array_filter([ |
|
| 13 | 'common' => [ |
|
| 14 | 'label' => Yii::t('hipanel', 'common'), |
|
| 15 | 'columns' => [ |
|
| 16 | 'seller_id', |
|
| 17 | 'client_id', |
|
| 18 | 'server', |
|
| 19 | 'actions', |
|
| 20 | 'object', |
|
| 21 | 'ip', |
|
| 22 | 'soft', |
|
| 23 | 'state', |
|
| 24 | ], |
|
| 25 | ], |
|
| 26 | ]); |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||