| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function items() |
||
| 20 | { |
||
| 21 | return [ |
||
| 22 | 'view' => [ |
||
| 23 | 'label' => Yii::t('hipanel', 'View'), |
||
| 24 | 'icon' => 'fa-info', |
||
| 25 | 'url' => ['@bill/view', 'id' => $this->model->id], |
||
| 26 | 'linkOptions' => [ |
||
| 27 | 'data-pjax' => 0, |
||
| 28 | ], |
||
| 29 | ], |
||
| 30 | 'copy' => [ |
||
| 31 | 'label' => Yii::t('hipanel', 'Copy'), |
||
| 32 | 'icon' => 'fa-copy', |
||
| 33 | 'url' => ['@bill/copy', 'id' => $this->model->id], |
||
| 34 | 'visible' => Yii::$app->user->can('bill.create'), |
||
| 35 | 'linkOptions' => [ |
||
| 36 | 'data-pjax' => 0, |
||
| 37 | ], |
||
| 38 | ], |
||
| 39 | 'update' => [ |
||
| 40 | 'label' => Yii::t('hipanel', 'Update'), |
||
| 41 | 'icon' => 'fa-pencil', |
||
| 42 | 'url' => ['@bill/update', 'id' => $this->model->id], |
||
| 43 | 'visible' => Yii::$app->user->can('bill.update'), |
||
| 44 | 'linkOptions' => [ |
||
| 45 | 'data-pjax' => 0, |
||
| 46 | ], |
||
| 47 | ], |
||
| 48 | ]; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |