ComboSearchAction::init()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 10
cc 2
nc 2
nop 0
crap 6
1
<?php
2
/**
3
 * HiPanel core package
4
 *
5
 * @link      https://hipanel.com/
6
 * @package   hipanel-core
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\actions;
12
13
/**
14
 * Class ComboSearchAction is a default SearchAction with disabled pagination by default
15
 * This class is used generally together with Combo plugin to prevent count query generation.
16
 */
17
class ComboSearchAction extends SearchAction
18
{
19
    public function init()
20
    {
21
        parent::init();
22
23
        if (!isset($this->dataProviderOptions['pagination'])) {
24
            $this->dataProviderOptions['pagination'] = false;
25
        }
26
    }
27
}
28