Solutions Open Source

Référence de la classe ADODB_pdo

Graphe d'héritage de ADODB_pdo:

Inheritance graph
[légende]
Graphe de collaboration de ADODB_pdo:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 ADODB_pdo ()
 _UpdatePDO ()
 Time ()
 _connect ($argDSN, $argUsername, $argPassword, $argDatabasename, $persist=false)
 _pconnect ($argDSN, $argUsername, $argPassword, $argDatabasename)
 SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
 ServerInfo ()
 MetaTables ($ttype=false, $showSchema=false, $mask=false)
 MetaColumns ($table, $normalize=true)
 InParameter (&$stmt, &$var, $name, $maxLen=4000, $type=false)
 ErrorMsg ()
 ErrorNo ()
 BeginTrans ()
 CommitTrans ($ok=true)
 RollbackTrans ()
 Prepare ($sql)
 PrepareStmt ($sql)
 _query ($sql, $inputarr=false)
 _close ()
 _affectedrows ()
 _insertid ()

Attributs publics

 $databaseType = "pdo"
 $dataProvider = "pdo"
 $fmtDate = "'Y-m-d'"
 uppercase function
 $fmtTimeStamp = "'Y-m-d, h:i:sA'"
 used by DBDate() as the default date format used by the database
 $replaceQuote = "''"
 string that represents FALSE for a database
 $hasAffectedRows = true
 supports autoincrement ID?
 $_bindInputArray = true
 A boolean variable to state whether its a persistent connection or normal connection. */.
 $_genSeqSQL = "create table %s (id integer)"
 $_autocommit = true
 $_haserrorfunctions = true
 $_lastAffectedRows = 0
 $_errormsg = false
 $_errorno = false
 $dsnType = ''
 $stmt = false


Documentation des fonctions membres

ADODB_pdo::ADODB_pdo (  ) 

ADODB_pdo::_UpdatePDO (  ) 

ADODB_pdo::Time (  ) 

Réimplémentée à partir de ADOConnection.

ADODB_pdo::_connect ( argDSN,
argUsername,
argPassword,
argDatabasename,
persist = false 
)

ADODB_pdo::_pconnect ( argDSN,
argUsername,
argPassword,
argDatabasename 
)

ADODB_pdo::SelectLimit ( sql,
nrows = -1,
offset = -1,
inputarr = false,
secs2cache = 0 
)

Will select, getting rows from $offset (1-based), for $nrows. This simulates the MySQL "select * from table limit $offset,$nrows" , and the PostgreSQL "select * from table limit $nrows offset $offset". Note that MySQL and PostgreSQL parameter ordering is the opposite of the other. eg. SelectLimit('select * from table',3); will return rows 1 to 3 (1-based) SelectLimit('select * from table',3,2); will return rows 3 to 5 (1-based)

Uses SELECT TOP for Microsoft databases (when $this->hasTop is set) BUG: Currently SelectLimit fails with $sql with LIMIT or TOP clause already set

Paramètres:
sql 
[offset] is the row to start calculations from (1-based)
[nrows] is the number of rows to get
[inputarr] array of bind variables
[secs2cache] is a private parameter only used by jlim
Renvoie:
the recordset ($rs->databaseType == 'array')

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_pdo_base, ADODB_pdo_mssql, ADODB_pdo_mysql, et ADODB_pdo_pgsql.

ADODB_pdo::ServerInfo (  ) 

Get server version info...

Renvoie:
An array with 2 elements: $arr['string'] is the description string, and $arr[version] is the version (also a string).

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_pdo_base, ADODB_pdo_mssql, ADODB_pdo_mysql, et ADODB_pdo_pgsql.

ADODB_pdo::MetaTables ( ttype = false,
showSchema = false,
mask = false 
)

Paramètres:
ttype can either be 'VIEW' or 'TABLE' or false. If false, both views and tables are returned. "VIEW" returns only views "TABLE" returns only tables
showSchema returns the schema/user with the table name, eg. USER.TABLE
mask is the input mask - only supported by oci8 and postgresql
Renvoie:
array of tables for current database.

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_pdo_mysql, ADODB_pdo_oci, et ADODB_pdo_pgsql.

ADODB_pdo::MetaColumns ( table,
normalize = true 
)

List columns in a database as an array of ADOFieldObjects. See top of file for definition of object.

Paramètres:
$table table name to query
$normalize makes table name case-insensitive (required by some databases) is optional database schema to use - not supported by all databases.
Renvoie:
array of ADOFieldObjects for current table.

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_pdo_pgsql.

ADODB_pdo::InParameter ( &$  stmt,
&$  var,
name,
maxLen = 4000,
type = false 
)

Réimplémentée à partir de ADOConnection.

ADODB_pdo::ErrorMsg (  ) 

Renvoie:
the last error message

Réimplémentée à partir de ADOConnection.

ADODB_pdo::ErrorNo (  ) 

Renvoie:
the last error number. Normally 0 means no error.

Réimplémentée à partir de ADOConnection.

ADODB_pdo::BeginTrans (  ) 

Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().

Renvoie:
true if succeeded or false if database does not support transactions

Réimplémentée à partir de ADOConnection.

ADODB_pdo::CommitTrans ( ok = true  ) 

If database does not support transactions, always return true as data always commited

Paramètres:
$ok set to false to rollback transaction, true to commit
Renvoie:
true/false.

Réimplémentée à partir de ADOConnection.

ADODB_pdo::RollbackTrans (  ) 

If database does not support transactions, rollbacks always fail, so return false

Renvoie:
true/false.

Réimplémentée à partir de ADOConnection.

ADODB_pdo::Prepare ( sql  ) 

Should prepare the sql statement and return the stmt resource. For databases that do not support this, we return the $sql. To ensure compatibility with databases that do not support prepare:

$stmt = $db->Prepare("insert into table (id, name) values (?,?)"); $db->Execute($stmt,array(1,'Jill')) or die('insert failed'); $db->Execute($stmt,array(2,'Joe')) or die('insert failed');

Paramètres:
sql SQL to send to database
Renvoie:
return FALSE, or the prepared statement, or the original sql if if the database does not support prepare.

Réimplémentée à partir de ADOConnection.

ADODB_pdo::PrepareStmt ( sql  ) 

ADODB_pdo::_query ( sql,
inputarr = false 
)

ADODB_pdo::_close (  ) 

ADODB_pdo::_affectedrows (  ) 

ADODB_pdo::_insertid (  ) 


Documentation des données membres

ADODB_pdo::$databaseType = "pdo"

Réimplémentée à partir de ADOConnection.

ADODB_pdo::$dataProvider = "pdo"

Réimplémentée à partir de ADOConnection.

ADODB_pdo::$fmtDate = "'Y-m-d'"

uppercase function

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_pdo_pgsql.

ADODB_pdo::$fmtTimeStamp = "'Y-m-d, h:i:sA'"

used by DBDate() as the default date format used by the database

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_pdo_pgsql.

ADODB_pdo::$replaceQuote = "''"

string that represents FALSE for a database

Réimplémentée à partir de ADOConnection.

ADODB_pdo::$hasAffectedRows = true

supports autoincrement ID?

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_pdo_pgsql.

ADODB_pdo::$_bindInputArray = true

A boolean variable to state whether its a persistent connection or normal connection. */.

Réimplémentée à partir de ADOConnection.

ADODB_pdo::$_genSeqSQL = "create table %s (id integer)"

Réimplémentée dans ADODB_pdo_pgsql.

ADODB_pdo::$_autocommit = true

ADODB_pdo::$_haserrorfunctions = true

ADODB_pdo::$_lastAffectedRows = 0

ADODB_pdo::$_errormsg = false

ADODB_pdo::$_errorno = false

ADODB_pdo::$dsnType = ''

ADODB_pdo::$stmt = false


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:39:59 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3