|
@@ 430-437 (lines=8) @@
|
| 427 |
|
} |
| 428 |
|
} |
| 429 |
|
$sql = 'SELECT ' . $field . 'COUNT(*) FROM ' . $this->table; |
| 430 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 431 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 432 |
|
if ($criteria->groupby != '') { |
| 433 |
|
$sql .= $criteria->getGroupby(); |
| 434 |
|
} |
| 435 |
|
$limit = $criteria->getLimit(); |
| 436 |
|
$start = $criteria->getStart(); |
| 437 |
|
} |
| 438 |
|
//$Cache_Lite = new oledrion_Cache_Lite($this->cacheOptions); |
| 439 |
|
$id = $this->_getIdForCache($sql, $start, $limit); |
| 440 |
|
//$cacheData = $Cache_Lite->get($id); |
|
@@ 481-488 (lines=8) @@
|
| 478 |
|
//require_once __DIR__ . '/lite.php'; |
| 479 |
|
|
| 480 |
|
$sql = 'SELECT Sum(' . $field . ') as cpt FROM ' . $this->table; |
| 481 |
|
if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { |
| 482 |
|
$sql .= ' ' . $criteria->renderWhere(); |
| 483 |
|
if ($criteria->groupby != '') { |
| 484 |
|
$sql .= $criteria->getGroupby(); |
| 485 |
|
} |
| 486 |
|
$limit = $criteria->getLimit(); |
| 487 |
|
$start = $criteria->getStart(); |
| 488 |
|
} |
| 489 |
|
//$Cache_Lite = new oledrion_Cache_Lite($this->cacheOptions); |
| 490 |
|
$id = $this->_getIdForCache($sql, $start, $limit); |
| 491 |
|
//$cacheData = $Cache_Lite->get($id); |