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

Samurai_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: Tue May 27 12:16:12 2003
00017 // | Author:  Martin Marrese - Myrna Degano <mmarre@mecon.gov.ar - mdegan@mecon.gov.ar>
00018 // +----------------------------------------------------------------------+
00019 //
00020 // $Id: Samurai_DB.php 26 2003-07-07 22:45:35Z mmarre $
00021 // $Author: mmarre $
00022 // $URL: http://portal.mecon.ar/svn/samurai/tronco/lib/SAMURAI/Samurai_DB.php $
00023 // $Date: 2003-07-07 19:45:35 -0300 (Mon, 07 Jul 2003) $
00024 // $Rev: 26 $
00025 //
00026 
00027 #require_once 'PEAR.php';
00028 
00029 
00030 // +X2C includes
00031 require_once 'DB.php';
00032 // ~X2C
00033 
00034 // +X2C Class 265 :Samurai_DB
00040 class Samurai_DB2 extends DB {
00041     // ~X2C
00042 
00043     // +X2C Operation 269
00050     function connect() // ~X2C
00051     {
00052         $conf = include 'conf/confSecciones.php';
00053 
00054         $dsn = $conf['db_type'].'://'.$conf['db_user'].':'.$conf['db_pass'].'@'.$conf['db_host'].'/'.$conf['db_name'];
00055 
00056         $db = DB::connect($dsn,true);
00057         if (DB::isError($db)) {
00058             die ($db->getMessage());
00059         }
00060         return $db;
00061     }
00062     // -X2C
00063 
00064 } // -X2C Class :Samurai_DB
00065 
00066 ?>

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