Commit b3f4d1f7e963a5519440ec4323f8fdb5cf3ba6ae
1 parent
1e49c8ea
Links fixed
Showing
2 changed files
with
5 additions
and
6 deletions
Show diff stats
components/artboxtree/treegrid/TreeGridColumn.php
components/artboxtree/treegrid/TreeGridWidget.php
| ... | ... | @@ -4,6 +4,8 @@ namespace artweb\artbox\components\artboxtree\treegrid; |
| 4 | 4 | |
| 5 | 5 | use artweb\artbox\ecommerce\models\TaxOption; |
| 6 | 6 | use Yii; |
| 7 | +use yii\base\InvalidConfigException; | |
| 8 | +use yii\grid\DataColumn; | |
| 7 | 9 | use yii\helpers\Html; |
| 8 | 10 | use yii\helpers\ArrayHelper; |
| 9 | 11 | |
| ... | ... | @@ -41,14 +43,14 @@ class TreeGridWidget extends \artweb\artbox\components\artboxtree\ArtboxTreeWidg |
| 41 | 43 | public $rowOptions = []; |
| 42 | 44 | |
| 43 | 45 | /** |
| 44 | - * @var Closure an anonymous function that is called once BEFORE rendering each data model. | |
| 46 | + * @var \Closure an anonymous function that is called once BEFORE rendering each data model. | |
| 45 | 47 | * It should have the similar signature as [[rowOptions]]. The return result of the function |
| 46 | 48 | * will be rendered directly. |
| 47 | 49 | */ |
| 48 | 50 | public $beforeRow; |
| 49 | 51 | |
| 50 | 52 | /** |
| 51 | - * @var Closure an anonymous function that is called once AFTER rendering each data model. | |
| 53 | + * @var \Closure an anonymous function that is called once AFTER rendering each data model. | |
| 52 | 54 | * It should have the similar signature as [[rowOptions]]. The return result of the function |
| 53 | 55 | * will be rendered directly. |
| 54 | 56 | */ |
| ... | ... | @@ -196,7 +198,7 @@ class TreeGridWidget extends \artweb\artbox\components\artboxtree\ArtboxTreeWidg |
| 196 | 198 | $cells[] = $column->renderDataCell($model, $key, $index, $i == 0, $this->levelSymbol); |
| 197 | 199 | $i++; |
| 198 | 200 | } |
| 199 | - if ($this->rowOptions instanceof Closure) { | |
| 201 | + if ($this->rowOptions instanceof \Closure) { | |
| 200 | 202 | $options = call_user_func($this->rowOptions, $model, $key, $index, $this); |
| 201 | 203 | } else { |
| 202 | 204 | $options = $this->rowOptions; | ... | ... |