public function query($query) { if (stripos(ltrim($query), 'SELECT') === 0) { return coreDB::dbGetData($query); } else { return coreDB::dbSetData($query); } }