public $error = false;
function __construct($server,$user,$pass,$db,$install = false) {
- global $a;
+ $a = get_app();
# work around, to store the database - configuration in DDDBL
$objDataObjectPool = new \DDDBL\DataObjectPool('Database-Definition');
}
public function q($sql, $onlyquery = false) {
- global $a;
+ $a = get_app();
$strHandler = (true === $onlyquery) ? 'PDOStatement' : 'MULTI';
}
}
- /**
- * Checks if $array is a filled array with at least one entry.
- *
- * @param $array mixed A filled array with at least one entry
- * @return Whether $array is a filled array
- */
- public function is_result ($array) {
- return (is_array($array) && count($array) > 0);
- }
-
function __destruct() {
if ($this->db)
\DDDBL\disconnect();