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
@@ -19,9 +19,6 @@ use yii\helpers\Inflector; | @@ -19,9 +19,6 @@ use yii\helpers\Inflector; | ||
19 | */ | 19 | */ |
20 | class TreeGridColumn extends Object { | 20 | class TreeGridColumn extends Object { |
21 | 21 | ||
22 | - /** | ||
23 | - * @var TreeGrid the grid view object that owns this column. | ||
24 | - */ | ||
25 | public $grid; | 22 | public $grid; |
26 | 23 | ||
27 | /** | 24 | /** |
components/artboxtree/treegrid/TreeGridWidget.php
@@ -4,6 +4,8 @@ namespace artweb\artbox\components\artboxtree\treegrid; | @@ -4,6 +4,8 @@ namespace artweb\artbox\components\artboxtree\treegrid; | ||
4 | 4 | ||
5 | use artweb\artbox\ecommerce\models\TaxOption; | 5 | use artweb\artbox\ecommerce\models\TaxOption; |
6 | use Yii; | 6 | use Yii; |
7 | +use yii\base\InvalidConfigException; | ||
8 | +use yii\grid\DataColumn; | ||
7 | use yii\helpers\Html; | 9 | use yii\helpers\Html; |
8 | use yii\helpers\ArrayHelper; | 10 | use yii\helpers\ArrayHelper; |
9 | 11 | ||
@@ -41,14 +43,14 @@ class TreeGridWidget extends \artweb\artbox\components\artboxtree\ArtboxTreeWidg | @@ -41,14 +43,14 @@ class TreeGridWidget extends \artweb\artbox\components\artboxtree\ArtboxTreeWidg | ||
41 | public $rowOptions = []; | 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 | * It should have the similar signature as [[rowOptions]]. The return result of the function | 47 | * It should have the similar signature as [[rowOptions]]. The return result of the function |
46 | * will be rendered directly. | 48 | * will be rendered directly. |
47 | */ | 49 | */ |
48 | public $beforeRow; | 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 | * It should have the similar signature as [[rowOptions]]. The return result of the function | 54 | * It should have the similar signature as [[rowOptions]]. The return result of the function |
53 | * will be rendered directly. | 55 | * will be rendered directly. |
54 | */ | 56 | */ |
@@ -196,7 +198,7 @@ class TreeGridWidget extends \artweb\artbox\components\artboxtree\ArtboxTreeWidg | @@ -196,7 +198,7 @@ class TreeGridWidget extends \artweb\artbox\components\artboxtree\ArtboxTreeWidg | ||
196 | $cells[] = $column->renderDataCell($model, $key, $index, $i == 0, $this->levelSymbol); | 198 | $cells[] = $column->renderDataCell($model, $key, $index, $i == 0, $this->levelSymbol); |
197 | $i++; | 199 | $i++; |
198 | } | 200 | } |
199 | - if ($this->rowOptions instanceof Closure) { | 201 | + if ($this->rowOptions instanceof \Closure) { |
200 | $options = call_user_func($this->rowOptions, $model, $key, $index, $this); | 202 | $options = call_user_func($this->rowOptions, $model, $key, $index, $this); |
201 | } else { | 203 | } else { |
202 | $options = $this->rowOptions; | 204 | $options = $this->rowOptions; |