Página principal | Lista alfabética | Lista de componentes | Lista de archivos | Miembros de las clases

DB.php

Ir a la documentación de este archivo.
00001 <?php
00002 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
00003 // +----------------------------------------------------------------------+
00004 // | PHP Version 4                                                        |
00005 // +----------------------------------------------------------------------+
00006 // | Copyright (c) 1997-2003 The PHP Group                                |
00007 // +----------------------------------------------------------------------+
00008 // | This source file is subject to version 2.02 of the PHP license,      |
00009 // | that is bundled with this package in the file LICENSE, and is        |
00010 // | available at through the world-wide-web at                           |
00011 // | http://www.php.net/license/2_02.txt.                                 |
00012 // | If you did not receive a copy of the PHP license and are unable to   |
00013 // | obtain it through the world-wide-web, please send a note to          |
00014 // | license@php.net so we can mail you a copy immediately.               |
00015 // +----------------------------------------------------------------------+
00016 // | Created: Mon Jul 7 16:50:36 2003
00017 // | Author:  Martin Marrese <mmarre@mecon.gov.ar>
00018 // +----------------------------------------------------------------------+
00019 //
00020 // $Id: DB.php 26 2003-07-07 22:45:35Z mmarre $
00021 // $Author: mmarre $
00022 // $URL: http://portal.mecon.ar/svn/samurai/tronco/lib/SAMURAI/DB.php $
00023 // $Date: 2003-07-07 19:45:35 -0300 (Mon, 07 Jul 2003) $
00024 // $Rev: 26 $
00025 //
00026 
00027 // +X2C includes
00028 require_once 'DB.php';
00029 // ~X2C
00030 
00031 // +X2C Class 265 :SAMURAI_DB
00037 class SAMURAI_DB extends DB {
00038     // ~X2C
00039 
00040     // +X2C Operation 269
00047     function connect() // ~X2C
00048     {
00049         $conf = parse_ini_file(dirname(__FILE__) . '/DB/consultas.ini', true);
00050         $db = DB::connect($conf['dsn'],$conf['opciones']);
00051         if (DB::isError($db)) {
00052             die ($db->getMessage());
00053         }
00054         return $db;
00055     }
00056     // -X2C
00057 
00058 } // -X2C Class :SAMURAI_DB
00059 ?>

Generado el Tue Jul 8 11:36:20 2003 para SAMURAI por doxygen 1.3.2