[ Index ]
 

Code source de dotProject 2.1 RC1

Accédez au Source d'autres logiciels libres | Soutenez Angelica Josefina !

title

Body

[fermer]

/includes/ -> db_connect.php (summary)

Generic functions based on library function (that is, non-db specific)

Poids: 432 lignes (10 kb)
Inclus ou requis: 6 fois
Référencé: 0 fois
Nécessite: 1 fichier
 includes/db_adodb.php

Definit 16 fonctions

  db_loadResult()
  db_loadObject()
  db_loadHash()
  db_loadHashList()
  db_loadList()
  db_loadColumn()
  db_loadObjectList()
  db_insertArray()
  db_updateArray()
  db_delete()
  db_insertObject()
  db_updateObject()
  db_dateConvert()
  db_datetime()
  db_dateTime2locale()
  bindHashToObject()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

db_loadResult( $sql )   X-Ref
This global function loads the first field of the first row returned by the query.

param: string The SQL query
return: The value returned in the query or null if the query failed.

db_loadObject( $sql, &$object, $bindAll=false , $strip = true)   X-Ref
This global function loads the first row of a query into an object

If an object is passed to this function, the returned row is bound to the existing elements of <var>object</var>.
If <var>object</var> has a value of null, then all of the returned query fields returned in the object.
param: string The SQL query
param: object The address of variable

db_loadHash( $sql, &$hash )   X-Ref
This global function return a result row as an associative array

param: string The SQL query
param: array An array for the result to be return in
return: <b>True</b> is the query was successful, <b>False</b> otherwise

db_loadHashList( $sql, $index='' )   X-Ref
Document::db_loadHashList()

{ Description }

param: string $index

db_loadList( $sql, $maxrows=NULL )   X-Ref
Document::db_loadList()

{ Description }

param: [type] $maxrows

db_loadColumn( $sql, $maxrows=NULL )   X-Ref
Document::db_loadColumn()

{ Description }

param: [type] $maxrows

db_loadObjectList( $sql, $object, $maxrows = NULL )   X-Ref
Pas de description

db_insertArray( $table, &$hash, $verbose=false )   X-Ref
Document::db_insertArray()

{ Description }

param: [type] $verbose

db_updateArray( $table, &$hash, $keyName, $verbose=false )   X-Ref
Document::db_updateArray()

{ Description }

param: [type] $verbose

db_delete( $table, $keyName, $keyValue )   X-Ref
Document::db_delete()

{ Description }


db_insertObject( $table, &$object, $keyName = NULL, $verbose=false )   X-Ref
Document::db_insertObject()

{ Description }

param: [type] $keyName
param: [type] $verbose

db_updateObject( $table, &$object, $keyName, $updateNulls=true )   X-Ref
Document::db_updateObject()

{ Description }

param: [type] $updateNulls

db_dateConvert( $src, &$dest, $srcFmt )   X-Ref
Document::db_dateConvert()

{ Description }


db_datetime( $timestamp = NULL )   X-Ref
Document::db_datetime()

{ Description }

param: [type] $timestamp

db_dateTime2locale( $dateTime, $format )   X-Ref
Document::db_dateTime2locale()

{ Description }


bindHashToObject( $hash, &$obj, $prefix=NULL, $checkSlashes=true, $bindAll=false )   X-Ref
Pas de description



Généré le : Sun Feb 18 19:46:52 2007 par Balluche grâce à PHPXref 0.7