Newscoop\Controller\Action\Helper\Datatable\Adapter\Doctrine::getCount PHP 메소드

getCount() 공개 메소드

Get filtered count
public getCount ( array $params = [], array $cols = [] ) : integer
$params array
$cols array
리턴 integer
    public function getCount(array $params = array(), array $cols = array())
    {
        if (empty($params['search'])) {
            return $this->getCount();
        }
        return $this->_entityManager->createQueryBuilder()->select('COUNT(e)')->from($this->_entityName, 'e')->where($this->buildWhere($cols, $params['sSearch']))->getQuery()->getSingleScalarResult();
    }