2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +----------------------------------------------------------------------+
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2003 The PHP Group |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 2.02 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available at through the world-wide-web at |
11 // | http://www.php.net/license/2_02.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
13 // | obtain it through the world-wide-web, please send a note to |
14 // | license@php.net so we can mail you a copy immediately. |
15 // +----------------------------------------------------------------------+
16 // | Created: Mon Jul 7 16:50:36 2003
17 // | Author: Martin Marrese <mmarre@mecon.gov.ar>
18 // +----------------------------------------------------------------------+
28 require_once 'DB.php';
31 // +X2C Class 265 :SAMURAI_DB
33 * Manejo interno de las bases de datos.
37 class SAMURAI_DB extends DB {
42 * Realiza la conexion con la base de datos.
47 function connect() // ~X2C
49 $conf = parse_ini_file(dirname(__FILE__) . '/DB/consultas.ini', true);
50 $db = DB::connect($conf['dsn'],$conf['opciones']);
51 if (DB::isError($db)) {
52 die ($db->getMessage());
58 } // -X2C Class :SAMURAI_DB