Completed
Push — master ( 3c8880...e2c218 )
by Dmitry
06:42 queued 02:46
created

CheckboxColumn   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 24
ccs 0
cts 5
cp 0
rs 10
c 1
b 0
f 1
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A registerClientScript() 0 5 1
1
<?php
2
3
/*
4
 * HiPanel core package
5
 *
6
 * @link      https://hipanel.com/
7
 * @package   hipanel-core
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hipanel\grid;
13
14
use hiqdev\higrid\FeaturedColumnTrait;
15
16
class CheckboxColumn extends \yii\grid\CheckboxColumn
17
{
18
    use FeaturedColumnTrait {
19
        registerClientScript as traitRegisterClientScript;
20
    }
21
22
    public $attribute;
23
24
    public function registerClientScript()
25
    {
26
        parent::registerClientScript();
27
        $this->traitRegisterClientScript();
28
    }
29
30
    /** {@inheritdoc} */
31
    public $defaultOptions = [
32
        'headerOptions' => [
33
            'style' => 'width:1em',
34
        ],
35
        'checkboxOptions' => [
36
            'class' => 'icheck',
37
        ],
38
    ];
39
}
40