Centralize some of the database function (linked to the normalized search). re #48, #49

This commit is contained in:
Sébastien Lucas 2014-05-28 16:13:57 +02:00
parent 81fbe584db
commit 9aee96d7e2
8 changed files with 12 additions and 9 deletions

View file

@ -1248,6 +1248,10 @@ abstract class Base
self::$db = NULL;
}
public static function executeQuerySingle ($query, $database = NULL) {
return self::getDb ($database)->query($query)->fetchColumn();
}
public static function executeQuery($query, $columns, $filter, $params, $n, $database = NULL, $numberPerPage = NULL) {
$totalResult = -1;