public static function _construct() { // Load the charsets file so we can detect them. $chset = Core::config('charset'); if (!file_exists(CORE . 'charset' . EXT)) { Core::error('404MSG', 'LIBTIT', array(__CLASS__, 'charset')); } include CORE . 'charset' . EXT; self::$_CHS = $_CHS; unset($_CHS); // load the default database configuration and // check for required values. self::$_DBS = Core::config('databases'); if (!is_array(self::$_DBS)) { Core::error('ARRTYP', 'LIBTIT', array(__CLASS__, 'databases')); } if (!count(self::$_DBS)) { Core::error('ARRNUM', 'LIBTIT', array(__CLASS__, 'databases', 1)); } // we get the default database and check for the correct settings self::$_DDB = Arrays::first(self::$_DBS); echo key(self::$_DBS); var_dump(self::$_DDB); }