Пример #1
0
/**
 * Loads connections configuration.
 *
 * @return void
 */
	protected static function _init() {
		include_once APP . 'Config' . DS . 'database.php';
		if (class_exists('DATABASE_CONFIG')) {
			self::$config = new DATABASE_CONFIG();
		}
		self::$_init = true;
	}
Пример #2
0
 /**
  * Loads connections configuration.
  *
  */
 private static function init()
 {
     include_once APP . 'Config' . DS . 'database.php';
     if (class_exists('DATABASE_CONFIG')) {
         self::$config = new DATABASE_CONFIG();
     }
     register_shutdown_function('ConnectionManager::shutdown');
     self::$_init = true;
 }