Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
28 | public function registerClientScript() |
||
29 | { |
||
30 | /** @var GridView $owner */ |
||
31 | $owner = $this->owner; |
||
32 | |||
33 | $view = $owner->getView(); |
||
34 | |||
35 | LoadingAsset::register($view); |
||
36 | |||
37 | $id = $owner->getId(); |
||
38 | $type = $this->type; |
||
39 | $hash = hash('crc32', $id.$type); |
||
40 | |||
41 | $view->registerJs(";dosamigos.loadingGrid.registerHandler('#$id', '$type', '$hash');"); |
||
42 | } |
||
43 | } |
||
44 |