Completed
Push — master ( 2d692f...15b931 )
by Dmitry
05:00
created

ComboSearchAction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 2
1
<?php
2
3
namespace hipanel\actions;
4
5
/**
6
 * Class ComboSearchAction is a default SearchAction with disabled pagination by default
7
 * This class is used generally together with Combo plugin to prevent count query generation
8
 */
9
class ComboSearchAction extends SearchAction
10
{
11
    public function init()
12
    {
13
        parent::init();
14
15
        if (!isset($this->dataProviderOptions['pagination'])) {
16
            $this->dataProviderOptions['pagination'] = false;
17
        }
18
    }
19
}
20