ADODB_sybase Class Reference

Inheritance diagram for ADODB_sybase:

Inheritance graph
[legend]
Collaboration diagram for ADODB_sybase:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ADODB_sybase ()
 _insertid ()
 _affectedrows ()
 BeginTrans ()
 CommitTrans ($ok=true)
 RollbackTrans ()
 RowLock ($tables, $where, $flds='top 1 null as ignore')
 SelectDB ($dbName)
 ErrorMsg ()
 _connect ($argHostname, $argUsername, $argPassword, $argDatabasename)
 _pconnect ($argHostname, $argUsername, $argPassword, $argDatabasename)
 _query ($sql, $inputarr)
SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
 _close ()
 UnixDate ($v)
 UnixTimeStamp ($v)
 SQLDate ($fmt, $col=false)
 MetaPrimaryKeys ($table)

Public Attributes

 $databaseType = "sybase"
 $dataProvider = 'sybase'
 $replaceQuote = "''"
 string that represents FALSE for a database
 $fmtDate = "'Y-m-d'"
 uppercase function
 $fmtTimeStamp = "'Y-m-d H:i:s'"
 used by DBDate() as the default date format used by the database
 $hasInsertID = true
 $hasAffectedRows = true
 supports autoincrement ID?
 $metaTablesSQL = "select name from sysobjects where type='U' or type='V'"
 $metaColumnsSQL = "SELECT c.column_name, c.column_type, c.width FROM syscolumn c, systable t WHERE t.table_name='%s' AND c.table_id=t.table_id AND t.table_type='BASE'"
 $concat_operator = '+'
 maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro
 $arrayClass = 'ADORecordSet_array_sybase'
 name of function that returns the current timestamp
 $sysDate = 'GetDate()'
 Use 'true' to store the item compressed (uses zlib).
 $leftOuter = '*='
 indicates that all fields in order by must be unique
 $rightOuter = '=*'
 operator to use for left outer join in WHERE clause


Detailed Description

Definition at line 21 of file adodb-sybase.inc.php.


Member Function Documentation

ADODB_sybase.ADODB_sybase (  ) 

Definition at line 43 of file adodb-sybase.inc.php.

ADODB_sybase._insertid (  ) 

Definition at line 48 of file adodb-sybase.inc.php.

References ADOConnection.GetOne().

Here is the call graph for this function:

ADODB_sybase._affectedrows (  ) 

Definition at line 53 of file adodb-sybase.inc.php.

References ADOConnection.GetOne().

Here is the call graph for this function:

ADODB_sybase.BeginTrans (  ) 

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

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

Reimplemented from ADOConnection.

Definition at line 59 of file adodb-sybase.inc.php.

References ADOConnection.Execute().

Referenced by RowLock().

Here is the call graph for this function:

ADODB_sybase.CommitTrans ( ok = true  ) 

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

Parameters:
$ok set to false to rollback transaction, true to commit
Returns:
true/false.

Reimplemented from ADOConnection.

Definition at line 69 of file adodb-sybase.inc.php.

References $ok, ADOConnection.Execute(), and RollbackTrans().

Here is the call graph for this function:

ADODB_sybase.RollbackTrans (  ) 

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

Returns:
true/false.

Reimplemented from ADOConnection.

Definition at line 80 of file adodb-sybase.inc.php.

References ADOConnection.Execute().

Referenced by CommitTrans().

Here is the call graph for this function:

ADODB_sybase.RowLock ( tables,
where,
flds = 'top 1 null as ignore' 
)

Definition at line 89 of file adodb-sybase.inc.php.

References BeginTrans(), and ADOConnection.GetOne().

Here is the call graph for this function:

ADODB_sybase.SelectDB ( dbName  ) 

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

Parameters:
dbName is the name of the database to select
Returns:
true or false

Reimplemented from ADOConnection.

Definition at line 97 of file adodb-sybase.inc.php.

References database.

Referenced by _connect(), and _pconnect().

ADODB_sybase.ErrorMsg (  ) 

Returns:
the last error message

Reimplemented from ADOConnection.

Reimplemented in ADODB_sybase_ase.

Definition at line 111 of file adodb-sybase.inc.php.

ADODB_sybase._connect ( argHostname,
argUsername,
argPassword,
argDatabasename 
)

Definition at line 122 of file adodb-sybase.inc.php.

References SelectDB().

Here is the call graph for this function:

ADODB_sybase._pconnect ( argHostname,
argUsername,
argPassword,
argDatabasename 
)

Definition at line 132 of file adodb-sybase.inc.php.

References SelectDB().

Here is the call graph for this function:

ADODB_sybase._query ( sql,
inputarr 
)

Definition at line 143 of file adodb-sybase.inc.php.

References $ADODB_COUNTRECS, and $sql.

& ADODB_sybase.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

Parameters:
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
Returns:
the recordset ($rs->databaseType == 'array')

Reimplemented from ADOConnection.

Definition at line 154 of file adodb-sybase.inc.php.

References $cnt, $rs, $sql, ADOConnection.Execute(), and ADOConnection.SelectLimit().

Here is the call graph for this function:

ADODB_sybase._close (  ) 

Definition at line 175 of file adodb-sybase.inc.php.

ADODB_sybase.UnixDate ( v  ) 

Also in ADORecordSet.

Parameters:
$v is a date string in YYYY-MM-DD format
Returns:
date in unix timestamp format, or 0 if before TIMESTAMP_FIRST_YEAR, or false if invalid date format

Reimplemented from ADOConnection.

Definition at line 180 of file adodb-sybase.inc.php.

References $v, and ADORecordSet_array_sybase.UnixDate().

Here is the call graph for this function:

ADODB_sybase.UnixTimeStamp ( v  ) 

Also in ADORecordSet.

Parameters:
$v is a timestamp string in YYYY-MM-DD HH-NN-SS format
Returns:
date in unix timestamp format, or 0 if before TIMESTAMP_FIRST_YEAR, or false if invalid date format

Reimplemented from ADOConnection.

Definition at line 185 of file adodb-sybase.inc.php.

References $v, and ADORecordSet_array_sybase.UnixTimeStamp().

Here is the call graph for this function:

ADODB_sybase.SQLDate ( fmt,
col = false 
)

Reimplemented from ADOConnection.

Definition at line 196 of file adodb-sybase.inc.php.

References $s, and ADOConnection.qstr().

Here is the call graph for this function:

ADODB_sybase.MetaPrimaryKeys ( table  ) 

Definition at line 258 of file adodb-sybase.inc.php.

References $sql, and ADOConnection.GetCol().

Here is the call graph for this function:


Member Data Documentation

ADODB_sybase.$databaseType = "sybase"

Reimplemented from ADOConnection.

Reimplemented in ADODB_sybase_ase.

Definition at line 22 of file adodb-sybase.inc.php.

ADODB_sybase.$dataProvider = 'sybase'

Reimplemented from ADOConnection.

Definition at line 23 of file adodb-sybase.inc.php.

ADODB_sybase.$replaceQuote = "''"

string that represents FALSE for a database

Reimplemented from ADOConnection.

Definition at line 24 of file adodb-sybase.inc.php.

ADODB_sybase.$fmtDate = "'Y-m-d'"

uppercase function

Reimplemented from ADOConnection.

Definition at line 25 of file adodb-sybase.inc.php.

ADODB_sybase.$fmtTimeStamp = "'Y-m-d H:i:s'"

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

Reimplemented from ADOConnection.

Definition at line 26 of file adodb-sybase.inc.php.

ADODB_sybase.$hasInsertID = true

Reimplemented from ADOConnection.

Definition at line 27 of file adodb-sybase.inc.php.

ADODB_sybase.$hasAffectedRows = true

supports autoincrement ID?

Reimplemented from ADOConnection.

Definition at line 28 of file adodb-sybase.inc.php.

ADODB_sybase.$metaTablesSQL = "select name from sysobjects where type='U' or type='V'"

Reimplemented from ADOConnection.

Reimplemented in ADODB_sybase_ase.

Definition at line 29 of file adodb-sybase.inc.php.

ADODB_sybase.$metaColumnsSQL = "SELECT c.column_name, c.column_type, c.width FROM syscolumn c, systable t WHERE t.table_name='%s' AND c.table_id=t.table_id AND t.table_type='BASE'"

Reimplemented in ADODB_sybase_ase.

Definition at line 31 of file adodb-sybase.inc.php.

ADODB_sybase.$concat_operator = '+'

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

Reimplemented from ADOConnection.

Definition at line 37 of file adodb-sybase.inc.php.

ADODB_sybase.$arrayClass = 'ADORecordSet_array_sybase'

name of function that returns the current timestamp

Reimplemented from ADOConnection.

Definition at line 38 of file adodb-sybase.inc.php.

ADODB_sybase.$sysDate = 'GetDate()'

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

Reimplemented from ADOConnection.

Definition at line 39 of file adodb-sybase.inc.php.

ADODB_sybase.$leftOuter = '*='

indicates that all fields in order by must be unique

Reimplemented from ADOConnection.

Definition at line 40 of file adodb-sybase.inc.php.

ADODB_sybase.$rightOuter = '=*'

operator to use for left outer join in WHERE clause

Reimplemented from ADOConnection.

Definition at line 41 of file adodb-sybase.inc.php.


The documentation for this class was generated from the following file:
This documentation is part of typo3-unleashed.net.
It's an automatically created code documentation of the TYPO3 Content Management System.
Created with doxygen