* [ADD] Work in progress.

This commit is contained in:
nuxsmin
2017-10-17 16:47:25 +02:00
parent ff7e6e3519
commit 0851f0e92d
43 changed files with 466 additions and 496 deletions

View File

@@ -282,12 +282,17 @@ class QueryData
}
/**
* @param string $where
* @param array|string $where
*/
public function setWhere($where)
{
if ($where !== '') {
$this->where = 'WHERE ' . $where;
if (!empty($where)) {
if (is_array($where)) {
$this->where = 'WHERE ' . implode(' AND ', $where);
} else {
$this->where = 'WHERE ' . $where;
}
}
}