Solutions Open Source

Référence de la classe ADODB_ibase

Graphe d'héritage de ADODB_ibase:

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

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 ADODB_ibase ()
 _connect ($argHostname, $argUsername, $argPassword, $argDatabasename, $persist=false)
 _pconnect ($argHostname, $argUsername, $argPassword, $argDatabasename)
 MetaPrimaryKeys ($table, $owner_notused=false, $internalKey=false)
 ServerInfo ()
 BeginTrans ()
 CommitTrans ($ok=true)
_Execute ($sql, $inputarr=false)
 RollbackTrans ()
MetaIndexes ($table, $primary=FALSE, $owner=false)
 RowLock ($tables, $where, $col)
 CreateSequence ($seqname, $startID=1)
 DropSequence ($seqname)
 GenID ($seqname='adodbseq', $startID=1)
 SelectDB ($dbName)
 _handleerror ()
 ErrorNo ()
 ErrorMsg ()
 Prepare ($sql)
 _query ($sql, $iarr=false)
 _close ()
 _ConvertFieldType (&$fld, $ftype, $flen, $fscale, $fsubtype, $fprecision, $dialect3)
MetaColumns ($table)
 BlobEncode ($blob)
 BlobDecode ($blob)
 _BlobDecode_old ($blob)
 _BlobDecode ($blob)
 UpdateBlobFile ($table, $column, $path, $where, $blobtype='BLOB')
 UpdateBlob ($table, $column, $val, $where, $blobtype='BLOB')
 OldUpdateBlob ($table, $column, $val, $where, $blobtype='BLOB')
 SQLDate ($fmt, $col=false)

Attributs publics

 $databaseType = "ibase"
 $dataProvider = "ibase"
 $replaceQuote = "''"
 string that represents FALSE for a database
 $ibase_datefmt = '%Y-%m-%d'
 $fmtDate = "'Y-m-d'"
 uppercase function
 $ibase_timestampfmt = "%Y-%m-%d %H:%M:%S"
 $ibase_timefmt = "%H:%M:%S"
 $fmtTimeStamp = "'Y-m-d, H:i:s'"
 used by DBDate() as the default date format used by the database
 $concat_operator = '||'
 maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro
 $_transactionID
 $metaTablesSQL = "select rdb\$relation_name from rdb\$relations where rdb\$relation_name not like 'RDB\$%'"
 $metaColumnsSQL = "select a.rdb\$field_name, a.rdb\$null_flag, a.rdb\$default_source, b.rdb\$field_length, b.rdb\$field_scale, b.rdb\$field_sub_type, b.rdb\$field_precision, b.rdb\$field_type from rdb\$relation_fields a, rdb\$fields b where a.rdb\$field_source = b.rdb\$field_name and a.rdb\$relation_name = '%s' order by a.rdb\$field_position asc"
 $ibasetrans
 $hasGenID = true
 has ability to run MoveFirst(), scrolling backwards
 $_bindInputArray = true
 A boolean variable to state whether its a persistent connection or normal connection. */.
 $buffers = 0
 $dialect = 1
 $sysDate = "cast('TODAY' as timestamp)"
 Use 'true' to store the item compressed (uses zlib).
 $sysTimeStamp = "CURRENT_TIMESTAMP"
 name of function that returns the current date
 $ansiOuter = true
 operator to use for right outer join in WHERE clause
 $hasAffectedRows = false
 supports autoincrement ID?
 $poorAffectedRows = true
 $blobEncodeType = 'C'
 $role = false


Documentation des fonctions membres

ADODB_ibase::ADODB_ibase (  ) 

ADODB_ibase::_connect ( argHostname,
argUsername,
argPassword,
argDatabasename,
persist = false 
)

ADODB_ibase::_pconnect ( argHostname,
argUsername,
argPassword,
argDatabasename 
)

ADODB_ibase::MetaPrimaryKeys ( table,
owner_notused = false,
internalKey = false 
)

ADODB_ibase::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_borland_ibase, et ADODB_firebird.

ADODB_ibase::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.

Réimplémentée dans ADODB_borland_ibase.

ADODB_ibase::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_ibase::_Execute ( sql,
inputarr = false 
)

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

ADODB_ibase::RollbackTrans (  ) 

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

Renvoie:
true/false.

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

& ADODB_ibase::MetaIndexes ( table,
primary = FALSE,
owner = false 
)

List indexes on a table as an array.

Paramètres:
table table name to query
primary true to only show primary keys. Not actually used for most databases
Renvoie:
array of indexes on current table. Each element represents an index, and is itself an associative array.
Array ( [name_of_index] => Array ( [unique] => true or false [columns] => Array ( [0] => firstname [1] => lastname ) )

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

ADODB_ibase::RowLock ( tables,
where,
col 
)

ADODB_ibase::CreateSequence ( seqname,
startID = 1 
)

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

ADODB_ibase::DropSequence ( seqname  ) 

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

ADODB_ibase::GenID ( seqname = 'adodbseq',
startID = 1 
)

Generates a sequence id and stores it in $this->genID; GenID is only available if $this->hasGenID = true;

Paramètres:
seqname name of sequence to use
startID if sequence does not exist, start at this ID
Renvoie:
0 if not supported, otherwise a sequence id

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

ADODB_ibase::SelectDB ( dbName  ) 

Choose a database to connect to. Many databases do not support this.

Paramètres:
dbName is the name of the database to select
Renvoie:
true or false

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

ADODB_ibase::_handleerror (  ) 

ADODB_ibase::ErrorNo (  ) 

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

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

ADODB_ibase::ErrorMsg (  ) 

Renvoie:
the last error message

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

ADODB_ibase::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_ibase::_query ( sql,
iarr = false 
)

ADODB_ibase::_close (  ) 

ADODB_ibase::_ConvertFieldType ( &$  fld,
ftype,
flen,
fscale,
fsubtype,
fprecision,
dialect3 
)

& ADODB_ibase::MetaColumns ( table  ) 

ADODB_ibase::BlobEncode ( blob  ) 

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

ADODB_ibase::BlobDecode ( blob  ) 

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

ADODB_ibase::_BlobDecode_old ( blob  ) 

ADODB_ibase::_BlobDecode ( blob  ) 

ADODB_ibase::UpdateBlobFile ( table,
column,
path,
where,
blobtype = 'BLOB' 
)

Usage: UpdateBlob('TABLE', 'COLUMN', '/path/to/file', 'ID=1');

$blobtype supports 'BLOB' and 'CLOB'

$conn->Execute('INSERT INTO blobtable (id, blobcol) VALUES (1, null)'); $conn->UpdateBlob('blobtable','blobcol',$blobpath,'id=1');

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

ADODB_ibase::UpdateBlob ( table,
column,
val,
where,
blobtype = 'BLOB' 
)

Update a blob column, given a where clause. There are more sophisticated blob handling functions that we could have implemented, but all require a very complex API. Instead we have chosen something that is extremely simple to understand and use.

Note: $blobtype supports 'BLOB' and 'CLOB', default is BLOB of course.

Usage to update a $blobvalue which has a primary key blob_id=1 into a field blobtable.blobcolumn:

UpdateBlob('blobtable', 'blobcolumn', $blobvalue, 'blob_id=1');

Insert example:

$conn->Execute('INSERT INTO blobtable (id, blobcol) VALUES (1, null)'); $conn->UpdateBlob('blobtable','blobcol',$blob,'id=1');

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

ADODB_ibase::OldUpdateBlob ( table,
column,
val,
where,
blobtype = 'BLOB' 
)

ADODB_ibase::SQLDate ( fmt,
col = false 
)

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


Documentation des données membres

ADODB_ibase::$databaseType = "ibase"

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

Réimplémentée dans ADODB_borland_ibase, et ADODB_firebird.

ADODB_ibase::$dataProvider = "ibase"

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

ADODB_ibase::$replaceQuote = "''"

string that represents FALSE for a database

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

ADODB_ibase::$ibase_datefmt = '%Y-%m-%d'

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

uppercase function

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

ADODB_ibase::$ibase_timestampfmt = "%Y-%m-%d %H:%M:%S"

ADODB_ibase::$ibase_timefmt = "%H:%M:%S"

ADODB_ibase::$fmtTimeStamp = "'Y-m-d, H:i:s'"

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

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

ADODB_ibase::$concat_operator = '||'

maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro

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

ADODB_ibase::$_transactionID

ADODB_ibase::$metaTablesSQL = "select rdb\$relation_name from rdb\$relations where rdb\$relation_name not like 'RDB\$%'"

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

ADODB_ibase::$metaColumnsSQL = "select a.rdb\$field_name, a.rdb\$null_flag, a.rdb\$default_source, b.rdb\$field_length, b.rdb\$field_scale, b.rdb\$field_sub_type, b.rdb\$field_precision, b.rdb\$field_type from rdb\$relation_fields a, rdb\$fields b where a.rdb\$field_source = b.rdb\$field_name and a.rdb\$relation_name = '%s' order by a.rdb\$field_position asc"

ADODB_ibase::$ibasetrans

ADODB_ibase::$hasGenID = true

has ability to run MoveFirst(), scrolling backwards

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

ADODB_ibase::$_bindInputArray = true

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

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

ADODB_ibase::$buffers = 0

ADODB_ibase::$dialect = 1

Réimplémentée dans ADODB_firebird.

ADODB_ibase::$sysDate = "cast('TODAY' as timestamp)"

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

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

ADODB_ibase::$sysTimeStamp = "CURRENT_TIMESTAMP"

name of function that returns the current date

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

Réimplémentée dans ADODB_firebird.

ADODB_ibase::$ansiOuter = true

operator to use for right outer join in WHERE clause

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

ADODB_ibase::$hasAffectedRows = false

supports autoincrement ID?

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

ADODB_ibase::$poorAffectedRows = true

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

ADODB_ibase::$blobEncodeType = 'C'

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

ADODB_ibase::$role = 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:45 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3