1 | <?php |
||
18 | class GridView extends \yii\grid\GridView |
||
19 | { |
||
20 | /** |
||
21 | * @var Behavior[]|array the attached behaviors (behavior name => behavior). |
||
22 | */ |
||
23 | private $gBehaviors = []; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public function init() |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function behaviors() |
||
42 | |||
43 | /** |
||
44 | * Provide the option to be able to set behaviors on GridView configuration. |
||
45 | * |
||
46 | * @param array $behaviors |
||
47 | */ |
||
48 | public function setBehaviors(array $behaviors = []) |
||
52 | |||
53 | /** |
||
54 | * Enhanced version of the render section to be able to work with behaviors that work directly with the |
||
55 | * template. |
||
56 | * |
||
57 | * @param string $name |
||
58 | * |
||
59 | * @return bool|mixed|string |
||
60 | */ |
||
61 | public function renderSection($name) |
||
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | */ |
||
81 | public function run() |
||
87 | |||
88 | /** |
||
89 | * Runs behaviors, registering their scripts if necessary |
||
90 | */ |
||
91 | protected function runBehaviors() |
||
106 | } |
||
107 |