phpDocumentor lodel
[ class tree: lodel ] [ index: lodel ] [ all elements ]

Procedural File: connect.php

Source Location: /lodel/scripts/connect.php

Page Details

Fichier pour gérer la connection à la base de donnée - initialise les connexions

PHP versions 4 et 5

LODEL - Logiciel d'Edition ELectronique.

Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot

Home page: http://www.lodel.org

E-Mail: lodel@lodel.org

All Rights Reserved

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, or (at your option) any later version.

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., 675 Mass Ave, Cambridge, MA 02139, USA.

Author:  Jean Lamy
Author:  Ghislain Picard
Version:  CVS:$Id:
Copyright:  2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
Copyright:  2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
Copyright:  2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
Filesource:  Source Code for this file
Includes
require_once ("adodb/adodb.inc.php") [line 58]
[ Top ]


Constants
DATABASE  [line 50]

DATABASE = $GLOBALS['database']

Fichier pour gérer la connection à la base de donnée - initialise les connexions

PHP versions 4 et 5

LODEL - Logiciel d'Edition ELectronique.

Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot

Home page: http://www.lodel.org

E-Mail: lodel@lodel.org

All Rights Reserved

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, or (at your option) any later version.

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., 675 Mass Ave, Cambridge, MA 02139, USA.

API Tags:
Filesource:  Source Code for this file

Information Tags:
Author:  Jean Lamy
Author:  Ghislain Picard
Version:  CVS:$Id:
Copyright:  2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
Copyright:  2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
Copyright:  2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot

[ Top ]

DBDRIVER  [line 54]

DBDRIVER = "mysql"

[ Top ]

DBHOST  [line 53]

DBHOST = $GLOBALS['dbhost']

[ Top ]

DBPASSWD  [line 52]

DBPASSWD = $GLOBALS['dbpasswd']

[ Top ]

DBUSERNAME  [line 51]

DBUSERNAME = $GLOBALS['dbusername']

[ Top ]

SINGLESITE  [line 69]

SINGLESITE = $GLOBALS['singledatabase']=="on"

[ Top ]


Functions
dberror  [line 94]

void dberror( )

Déclenche une erreur lors d'une erreur concernant la base de données



[ Top ]
deleteuniqueid  [line 200]

void deleteuniqueid( integer $id  )

Suppression d'un identifiant uniques (table objets)

erase a unique id. Cette fonction accepte en entrée un id ou un tableau d'id

Parameters:
integer   $id:  or array un id ou un tableau d'ids.


[ Top ]
lq  [line 156]

string lq( string $query  )

Lodel Query :

Transforme les requêtes en résolvant les jointures et en cherchant les bonnes tables dans les bases de données (suivant notamment le préfix utilisé pour le nommage des tables).

Parameters:
string   $query:  la requête à traduire

API Tags:
Return:  la requête traduite


[ Top ]
mysql_find_db_variable  [line 217]

valeur mysql_find_db_variable( string $database_name, [string $var = 'character_set_database']  )

Recherche d'une variable MySQL

Parameters:
string   $database_name:  nom de la base de donnée
string   $var:  nom de la variable recherchée

API Tags:
Return:  de la variable


[ Top ]
uniqueid  [line 185]

integer uniqueid( string $table  )

Fonction nécessaire pour la gestion des id numériques uniques (dans la table object)

get a unique id fonction for handling unique id

Parameters:
string   $table:  le nom de la table dans laquelle on veut insérer un objet

API Tags:
Return:  Un entier correspondant à l'id inséré.


[ Top ]
usecurrentdb  [line 134]

void usecurrentdb( )

Positionne la connexion de la base de données sur la base de données du site (si Lodel est

installé en multisite, l'unique base sinon



[ Top ]
usemaindb  [line 107]

void usemaindb( )

Positionne la connexion de la base de données sur la table principale (en cas d'installation multisite.



[ Top ]


Documentation generated on Tue, 22 Jul 2008 05:08:13 +0200 by phpDocumentor 1.4.0a2