]> git.llucax.com Git - mecon/samurai.git/blob - doc/apidoc/html/DB_8php-source.html
Se agrega SAMURAI_Perm para manejar los permisos desde las aplicaciones.
[mecon/samurai.git] / doc / apidoc / html / DB_8php-source.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>SAMURAI: DB.php Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generado por Doxygen 1.3.2 -->
7 <div class="qindex"><a class="qindex" href="main.html">Página&nbsp;principal</a> | <a class="qindex" href="classes.html">Lista&nbsp;alfabética</a> | <a class="qindex" href="annotated.html">Lista&nbsp;de&nbsp;componentes</a> | <a class="qindex" href="files.html">Lista&nbsp;de&nbsp;archivos</a> | <a class="qindex" href="functions.html">Miembros&nbsp;de&nbsp;las&nbsp;clases</a></div>
8 <h1>DB.php</h1><a href="DB_8php.html">Ir a la documentación de este archivo.</a><div class="fragment"><pre>00001 &lt;?php
9 00002 <span class="comment">// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:</span>
10 00003 <span class="comment">// +----------------------------------------------------------------------+</span>
11 00004 <span class="comment">// | PHP Version 4                                                        |</span>
12 00005 <span class="comment">// +----------------------------------------------------------------------+</span>
13 00006 <span class="comment">// | Copyright (c) 1997-2003 The PHP Group                                |</span>
14 00007 <span class="comment">// +----------------------------------------------------------------------+</span>
15 00008 <span class="comment">// | This source file is subject to version 2.02 of the PHP license,      |</span>
16 00009 <span class="comment">// | that is bundled with this package in the file LICENSE, and is        |</span>
17 00010 <span class="comment">// | available at through the world-wide-web at                           |</span>
18 00011 <span class="comment">// | http://www.php.net/license/2_02.txt.                                 |</span>
19 00012 <span class="comment">// | If you did not receive a copy of the PHP license and are unable to   |</span>
20 00013 <span class="comment">// | obtain it through the world-wide-web, please send a note to          |</span>
21 00014 <span class="comment">// | license@php.net so we can mail you a copy immediately.               |</span>
22 00015 <span class="comment">// +----------------------------------------------------------------------+</span>
23 00016 <span class="comment">// | Created: Mon Jul 7 16:50:36 2003</span>
24 00017 <span class="comment">// | Author:  Martin Marrese &lt;mmarre@mecon.gov.ar&gt;</span>
25 00018 <span class="comment">// +----------------------------------------------------------------------+</span>
26 00019 <span class="comment">//</span>
27 00020 <span class="comment">// $Id: DB.php 26 2003-07-07 22:45:35Z mmarre $</span>
28 00021 <span class="comment">// $Author: mmarre $</span>
29 00022 <span class="comment">// $URL: http://portal.mecon.ar/svn/samurai/tronco/lib/SAMURAI/DB.php $</span>
30 00023 <span class="comment">// $Date: 2003-07-07 19:45:35 -0300 (Mon, 07 Jul 2003) $</span>
31 00024 <span class="comment">// $Rev: 26 $</span>
32 00025 <span class="comment">//</span>
33 00026 
34 00027 <span class="comment">// +X2C includes</span>
35 00028 require_once 'DB.php';
36 00029 <span class="comment">// ~X2C</span>
37 00030 
38 00031 <span class="comment">// +X2C Class 265 :SAMURAI_DB</span>
39 <a name="l00037"></a><a class="code" href="classSAMURAI__DB.html">00037</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classSAMURAI__DB.html">SAMURAI_DB</a> <span class="keyword">extends</span> DB {
40 00038     <span class="comment">// ~X2C</span>
41 00039 
42 00040     <span class="comment">// +X2C Operation 269</span>
43 <a name="l00047"></a><a class="code" href="classSAMURAI__DB.html#a0">00047</a> <span class="comment"></span>    function <a class="code" href="classSAMURAI__DB.html#a0">connect</a>() <span class="comment">// ~X2C</span>
44 00048     {
45 00049         $conf = parse_ini_file(dirname(__FILE__) . '/DB/consultas.ini', <span class="keyword">true</span>);
46 00050         $db = DB::connect($conf['dsn'],$conf['opciones']);
47 00051         <span class="keywordflow">if</span> (DB::isError($db)) {
48 00052             die ($db-&gt;getMessage());
49 00053         }
50 00054         <span class="keywordflow">return</span> $db;
51 00055     }
52 00056     <span class="comment">// -X2C</span>
53 00057 
54 00058 } <span class="comment">// -X2C Class :SAMURAI_DB</span>
55 00059 ?&gt;
56 </pre></div><hr size="1"><address style="align: right;"><small>Generado el Tue Jul 8 11:36:20 2003 para SAMURAI por
57 <a href="http://www.doxygen.org/index.html">
58 <img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
59 </a>1.3.2 </small></address>
60 </body>
61 </html>