* [DEV] Improved account search handling

This commit is contained in:
nuxsmin
2016-11-02 23:35:32 +01:00
committed by Rubén Domínguez
parent cc3db310f7
commit 2eb72d0893
56 changed files with 327 additions and 373 deletions

View File

@@ -78,6 +78,10 @@ class QueryData
* @var string
*/
protected $queryCount = '';
/**
* @var int
*/
protected $queryNumRows = 0;
/**
* @param $value
@@ -270,9 +274,25 @@ class QueryData
public function getQueryCount()
{
if ($this->queryCount === '') {
return 'SELECT COUNT(*) ' . $this->from . ' ' . $this->where;
return 'SELECT COUNT(*) ' . $this->getFrom() . ' ' . $this->getWhere();
}
return $this->queryCount;
}
/**
* @return int
*/
public function getQueryNumRows()
{
return $this->queryNumRows;
}
/**
* @param int $queryNumRows
*/
public function setQueryNumRows($queryNumRows)
{
$this->queryNumRows = $queryNumRows;
}
}