<?php
/**
 *
 * Auteurs : Richard DEMONGEOT, Alan GARCIA (Durant le projet de PHP de notre année scolaire
 *                                           2004-2005)
 *
 * Date : 11/12/2006
 *
 * Derniere modification : 11/12/2006
 *
 * Synopsys : Fonctions spécifique a Oracle
 *
**/

/*
Ce fichier est sous licence GPL V2.
Je vous demanderai toutefois de bien vouloir me faire parvenir (par mail ou par
un autre moyen à votre convenance) les modifications que vous êtes suceptibles
d'y ajouter, ainsi que leurs justification.

--------------------------------------------------------------------------------------

This program 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.

Thanks to send me any change you can wrote to this project and their reasons.

This program 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
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

class oracle extends cbd
{
    function 
cbd ()/* fait office de connexion */
    
{
        
$this->ORACLE=1;
        
$this->POSGRESQL=0;
        
$this->MYSQL=0;
        
$this->connexion=oci_connect(LOGINPASSWORDDATABASE);
        
$this->CaseSensitive=1;
        
$this->majuscule=1;
    
    }
//CBD
    
    /* Fonction qui execute la requete SQL passée */
    
function Execute ($_req)
    {
        
$_req strtoupper($_req);
        
$resultat=oci_parse($this->connexion$_req);
        
oci_execute($resultat);
        return 
$resultat;
    }
    
    
/* Fonction qui parse les résultats fetch_row */
    
function Fetch_row ($_resultat)
    {
        return 
oci_fetch_row($_resultat);
    }
    
    
/* Fonction qui parse les résultats fetch_assoc */
    
function Fetch_assoc ($_resultat)
    {
        return 
oci_fetch_assoc($_resultat);
    }
};

?>