| @@ 8-25 (lines=18) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class TemplateRepresentations 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 | 'author_id', |
|
| 18 | 'name', |
|
| 19 | 'actions', |
|
| 20 | 'is_published', |
|
| 21 | ], |
|
| 22 | ], |
|
| 23 | ]); |
|
| 24 | } |
|
| 25 | } |
|
| 26 | ||
| @@ 8-26 (lines=19) @@ | ||
| 5 | use hiqdev\higrid\representations\RepresentationCollection; |
|
| 6 | use Yii; |
|
| 7 | ||
| 8 | class TicketRepresentations 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 | 'subject', |
|
| 18 | 'author_id', |
|
| 19 | 'responsible_id', |
|
| 20 | 'recipient_id', |
|
| 21 | 'answer_count', |
|
| 22 | ], |
|
| 23 | ], |
|
| 24 | ]); |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||