Class DoliDb

(line 38)

Description


Located in File: /mysql.lib.php

classe DoliDb

Classe contenant les fonctions pour gere la database de dolibarr



Class Variables

Summary:
mixed $connected
mixed $db
mixed $ok
mixed $results

$connected (line 39)

Data type : mixed

$database_selected (line 39)

Data type : mixed

$db (line 39)

Data type : mixed

$ERROR_DUPLICATE = 1062 (line 42)

Data type : mixed

$ERROR_TABLEEXISTS = 1050 (line 43)

Data type : mixed

$ok (line 39)

Data type : mixed

$results (line 39)

Data type : mixed

Method Detail

Summary:
DoliDb DoliDb ([string $type = 'mysql'], [string $host = ''], [string $user = ''], [string $pass = ''], [string $name = ''])
int affected_rows ()
string begin ([integer $do = 1])
resource clone ()
resource close ()
string commit ([integer $do = 1])
resource connect (string $host, string $login, string $passwd)
integer create_db (string $database)
int errno ()
string error ()
array fetch_array ()
object fetch_field ()
resource fetch_object ()
array fetch_row ()
resource free ()
string idate (integer $fname)
resource list_tables (string $database)
int num_fields ()
int num_rows ()
resource pconnect (string $host, string $login, string $passwd)
void pdate (mixed $fname)
string plimit (integer $limit, integer $offset)
resource query (string $query, [string $limit = ""], [string $offset = ""])
resource result (integer $nb, string $fieldname)
string rollback ([integer $do = 1])
resource select_db (string $database)

Constructor DoliDb (line 57)

DoliDb DoliDb( [string $type = 'mysql'], [string $host = ''], [string $user = ''], [string $pass = ''], [string $name = ''])

ouverture d'une connection vers le serveur et/ou une database

Parameters

  • string $type:
  • string $host:
  • string $user:
  • string $pass:
  • string $name:

Info

  • access - public

Method affected_rows (line 498)

int affected_rows( )

obtient le nombre de lignes affectées dans la précédente opération

Info

  • access - public

Method begin (line 230)

string begin( [integer $do = 1])

debut d'un transaction

Parameters

  • integer $do:

Info

  • access - public

Method clone (line 187)

resource clone( )

copie d'une database

Info

  • access - public

Method close (line 217)

resource close( )

fermeture d'une connection vers une database

Info

  • access - public

Method commit (line 250)

string commit( [integer $do = 1])

écriture d'un transaction

Parameters

  • integer $do:

Info

  • access - public

Method connect (line 153)

resource connect( string $host, string $login, string $passwd)

connection vers une database

Parameters

  • string $host:
  • string $login:
  • string $passwd:

Info

  • access - public

Method create_db (line 168)

integer create_db( string $database)

création d'une database

Parameters

  • string $database:

Info

  • access - public

Method errno (line 471)

int errno( )

renvoie la valeur numerique de l'erreur mysql de l'operation precedente

Info

  • access - public

Method error (line 459)

string error( )

renvoie le texte de l'erreur mysql de l'operation precedente

Info

  • access - public

Method fetch_array (line 399)

array fetch_array( )

renvoie les données dans un tableau

Info

  • access - public

Method fetch_field (line 423)

object fetch_field( )

Get column information from a result and return as an object

Info

  • access - public

Method fetch_object (line 347)

resource fetch_object( )

renvoie les données comme un objet

Info

  • access - public

Method fetch_row (line 411)

array fetch_row( )

renvoie les données comme un tableau

Info

  • access - public

Method free (line 335)

resource free( )

désalloue la memoire de la requete

Info

  • access - public

Method idate (line 387)

string idate( integer $fname)

formatage de la date en fonction des locales

Parameters

  • integer $fname:

Info

  • access - public

Method last_insert_id (line 486)

int last_insert_id( )

obtient l'id genéré par le précedent INSERT

Info

  • access - public

Method list_tables (line 308)

resource list_tables( string $database)

liste des tables vers une database

Parameters

  • string $database:

Info

  • access - public

Method num_fields (line 447)

int num_fields( )

renvoie le nombre de champs dans le resultat de la requete

Info

  • access - public

Method num_rows (line 435)

int num_rows( )

renvoie le nombre de lignes dans le resultat de la requete

Info

  • access - public

Method pconnect (line 204)

resource pconnect( string $host, string $login, string $passwd)

ouverture d'une connection vers une database

Parameters

  • string $host:
  • string $login:
  • string $passwd:

Info

  • access - public

Method pdate (line 374)

void pdate( mixed $fname)

Info

Method plimit (line 361)

string plimit( [integer $limit = 0], [integer $offset = 0])

défini les limites de la requète

Parameters

  • integer $limit:
  • integer $offset:

Info

  • access - public

Method query (line 292)

resource query( string $query, [string $limit = ""], [string $offset = ""])

requete vers une database

Parameters

  • string $query:
  • string $limit:
  • string $offset:

Info

  • access - public

Method result (line 323)

resource result( integer $nb, string $fieldname)

renvoie les données de la requete

Parameters

  • integer $nb:
  • string $fieldname:

Info

  • access - public

Method rollback (line 270)

string rollback( [integer $do = 1])

effacement d'un transaction et retour au ancienne valeurs

Parameters

  • integer $do:

Info

  • access - public

Method select_db (line 138)

resource select_db( string $database)

selectionne une database

Parameters

  • string $database:

Info

  • access - public

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Mon, 21 Jun 2004 23:58:40 +0200 by phpDocumentor 1.2.3