mdtrooper 8c5e0dd4cf 2013-03-15 Miguel de Dios <miguel.dedios@artica.es>
* mobile/*: added first version of new mobile console.
	



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7861 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-03-15 14:50:47 +00:00

41 lines
1.1 KiB
PHP

<?php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation for version 2.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//Singleton
class DB {
private static $instance;
private $system;
private $engine;
public function __construct($engine = 'mysql') {
$this->system = &$system;
$this->engine = $engine;
switch ($engine) {
case 'mysql':
//NONE
break;
}
}
public static function getInstance($engine = 'mysql') {
if (!(self::$instance instanceof self)) {
self::$instance = new self($engine);
}
return self::$instance;
}
}
?>