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

ComboSearchAction::init()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 0
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
crap 6
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