+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
+-------------------------------------------------------------------------------
+ Ministerio de Economía
+ YATTA!
+-------------------------------------------------------------------------------
+This file is part of YATTA!.
+
+YATTA! 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; either version 2 of the License, or (at your option)
+any later version.
+
+YATTA! 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.
+
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA 02111-1307 USA
+-------------------------------------------------------------------------------
+Creado: vie feb 6 16:40:43 ART 2004
+Autor: Martin Marrese <mmarre@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id$
+-----------------------------------------------------------------------------*/
+
+require_once 'DB.php';
+
+/**
+ * Manejo interno de las bases de datos.
+ *
+ * @access public
+ */
+class YATTA_DB extends DB {
+
+ /**
+ * Realiza la conexion con la base de datos.
+ *
+ * @return DB
+ * @access public
+ * @static
+ */
+ function connect($CONF)
+ {
+ $dsn = $CONF['dsn'];
+ unset ($CONF['db']['dsn']);
+ $db = DB::connect($dsn, $CONF);
+ if (DB::isError($db)) {
+ trigger_error($db->getMessage(), E_USER_ERROR);
+ }
+ return $db;
+ }
+}
+?>