Solutions Open Source

Référence de la classe ADODB_vfp

Graphe d'héritage de ADODB_vfp:

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

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 ADODB_vfp ()
 Time ()
 BeginTrans ()
 qstr ($s, $nofixquotes=false)
SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)

Attributs publics

 $databaseType = "vfp"
 $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 = "'+chr(39)+'"
 string that represents FALSE for a database
 $true = '.T.'
 used by DBTimeStamp as the default timestamp fmt.
 $false = '.F.'
 string that represents TRUE for a database
 $hasTop = 'top'
 supports affected rows for update/delete?
 $_bindInputArray = false
 A boolean variable to state whether its a persistent connection or normal connection. */.
 $sysTimeStamp = 'datetime()'
 name of function that returns the current date
 $sysDate = 'date()'
 Use 'true' to store the item compressed (uses zlib).
 $ansiOuter = true
 operator to use for right outer join in WHERE clause
 $hasTransactions = false
 can generate sequences using GenID();
 $curmode = false


Documentation des fonctions membres

ADODB_vfp::ADODB_vfp (  ) 

ADODB_vfp::Time (  ) 

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

ADODB_vfp::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 ADODB_odbc.

ADODB_vfp::qstr ( s,
magic_quotes = false 
)

Correctly quotes a string so that all strings are escaped. We prefix and append to the string single-quotes. An example is $db->qstr("Don't bother",magic_quotes_runtime());

Paramètres:
s the string to quote
[magic_quotes] if $s is GET/POST var, set to get_magic_quotes_gpc(). This undoes the stupidity of magic quotes for GPC.
Renvoie:
quoted string to be sent back to database

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

& ADODB_vfp::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.


Documentation des données membres

ADODB_vfp::$databaseType = "vfp"

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

ADODB_vfp::$fmtDate = "{^Y-m-d}"

uppercase function

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

ADODB_vfp::$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 ADODB_odbc.

ADODB_vfp::$replaceQuote = "'+chr(39)+'"

string that represents FALSE for a database

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

ADODB_vfp::$true = '.T.'

used by DBTimeStamp as the default timestamp fmt.

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

ADODB_vfp::$false = '.F.'

string that represents TRUE for a database

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

ADODB_vfp::$hasTop = 'top'

supports affected rows for update/delete?

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

ADODB_vfp::$_bindInputArray = false

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

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

ADODB_vfp::$sysTimeStamp = 'datetime()'

name of function that returns the current date

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

ADODB_vfp::$sysDate = 'date()'

Use 'true' to store the item compressed (uses zlib).

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

ADODB_vfp::$ansiOuter = true

operator to use for right outer join in WHERE clause

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

ADODB_vfp::$hasTransactions = false

can generate sequences using GenID();

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

ADODB_vfp::$curmode = false

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


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