PHP Classes
Icontem

File: interface.txt


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lennart Groetzbach  >  anyDB  >  interface.txt  
File: interface.txt
Role: Documentation
Content type: text/plain
Description: interface description
Class: anyDB
DB class for MYSQL, POSTGRES, SQLITE, PHPLIB, ODBC
 

Contents

Class file image Download
//////////////////////////////////////////////////////////////////////////////
/*
   interface for anyDB 1.2b
   12/11/04
*/
//////////////////////////////////////////////////////////////////////////////

constructor($libraryPath, $dbType, $preferredResType = ANYDB_RES) 
function connect($host, $db, $user, $password, persistent = FALSE) 
function disconnect() 
function setDB($database)                                            //new for 1.2 

function query($query) 
function execute($query, $resultType = PREDEFINED_VALUE)

function getNext($resultType = PREDEFINED_VALUE) 
function getAll($resultType = PREDEFINED_VALUE) 
function getColumn($resultType = PREDEFINED_VALUE) 
function getValue($resultType = ANYDB_STRING)                        //updated for 1.2

function getMapped($key)                                             //new for 1.2 
function getInsertId()                                               //new for 1.2 
function getDataId($table, $array, $fields = null, $id_field = 'id') //new for 1.2 
function getTables()                                                 //updated for 1.2
function getDBs() 

function escapeStr($str)                                             // updated for 1.2
function free() 

function numRows() 
function affectedRows() 

function getIdentifier() 
function getDBType() 
function getVersion() 

// values ////////////////////////////////////////////////////////////////////

string $host 
string $database 
string $user 
string $password 
string $dns                   // for odbc
string $persistent

integer $prefResType 
string $lastQuery 
string $error 
Array[] $errors

string $db 
string $result


// possible constants for the result types ///////////////////////////////////

constructor(), getNext(), getAll(), getColumn()
   $resultType = {ANYDB_RES_ASSOC | ANYDB_RES_NUM | ANYDB_RES_BOTH | ANYDB_RES_OBJ}

getValue()
   $resultType = {ANYDB_INT | ANYDB_FLOAT | ANYDB_DOUBLE | ANYDB_STRING | ANYDB_BOOL}

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products