Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
58 | public function getCount($filter) |
||
59 | { |
||
60 | $version = explode('.', SM_VERSION); |
||
61 | if ($version[0] <= 15) { |
||
62 | $result = call_user_func_array([$this->className, 'query'], [])->addSelect(new ExpressionField('CNT', 'COUNT(1)'))->setFilter($filter)->exec()->fetch(); |
||
63 | return $result['CNT']; |
||
64 | } else { |
||
65 | return $this->__call('getCount', $filter); |
||
66 | } |
||
67 | } |
||
68 | } |
||
69 |