]> git.llucax.com Git - mecon/ai.git/blob - sistema/local_lib/AIDB.php
Se arregla un bug.
[mecon/ai.git] / sistema / local_lib / AIDB.php
1 <?php
2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // |                      Ministerio de Economía                        |
5 // |                  AI (Administrador de Intranet)                    |
6 // +--------------------------------------------------------------------+
7 // | This file is part of AI.                                           |
8 // |                                                                    |
9 // | AI is free software; you can redistribute it and/or modify         |
10 // | it under the terms of the GNU General Public License as published  |
11 // | by the Free Software Foundation; either version 2 of the License,  |
12 // | or (at your option) any later version.                             |
13 // |                                                                    |
14 // | AI is distributed in the hope that it will be useful, but          |
15 // | WITHOUT ANY WARRANTY; without even the implied warranty of         |
16 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   |
17 // | General Public License for more details.                           |
18 // |                                                                    |
19 // | You should have received a copy of the GNU General Public License  |
20 // | along with Hooks; if not, write to the Free Software Foundation,   |
21 // | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA      |
22 // +--------------------------------------------------------------------+
23 // | Creado: Wed Jul 2 17:53:43 2003                                    |
24 // | Autor:  Leandro Lucarella <llucar@mecon.gov.ar>                    |
25 // +--------------------------------------------------------------------+
26 //
27 // $Id$
28 //
29
30 // +X2C includes
31 require_once 'DB.php';
32 // ~X2C
33
34 // +X2C Class 503 :AIDB
35 /**
36  * Base de datos del Administrador de Intranet.
37  *
38  * @access public
39  */
40 class AIDB extends DB {
41     // ~X2C
42
43     // +X2C Operation 506
44     /**
45      * @return &mixed
46      * @access public
47      */
48     function &connect() // ~X2C
49     {
50         $conf = parse_ini_file(dirname(__FILE__) . '/../conf/AIDB.ini', true);
51         return DB::connect($conf['dsn'], $conf['opciones']);
52     }
53     // -X2C
54
55 } // -X2C Class :AIDB
56
57 ?>