public function getDefault() { if (strlen($GLOBALS['db']) > 0) { return $GLOBALS['db']; } return $this->getEmpty(); }