MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Driver_fbsql

Source Location: /MDB2_Driver_fbsql-0.2.0/MDB2/Driver/fbsql.php

Class Overview

MDB2_Driver_Common
   |
   --MDB2_Driver_fbsql

MDB2 FrontBase driver


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 57]
MDB2 FrontBase driver


[ Top ]


Class Variables

$escape_quotes =  "'"

[line 60]


Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 68]

MDB2_Driver_fbsql __construct( )

Constructor

[ Top ]

beginTransaction   [line 148]

mixed beginTransaction( )

Start a transaction.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

commit   [line 176]

mixed commit( )

Commit the database changes done during a transaction that is in progress.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

connect   [line 232]

true connect( )

Connect to the database
  • Return: on success, MDB2 Error Object on failure

[ Top ]

currID   [line 488]

mixed currID( string $seq_name)

returns the current id of a sequence
  • Return: MDB2 Error Object or id
  • Access: public

Parameters:

string   $seq_name   —  name of the sequence

[ Top ]

disconnect   [line 290]

mixed disconnect( [boolean $force = true])

Log out and disconnect from the database.
  • Return: true on success, false if not connected and error object on error
  • Access: public

Parameters:

boolean   $force   —  if the disconnect should be forced even if the connection is opened persistently

[ Top ]

errorInfo   [line 101]

array errorInfo( [integer $error = null])

This method is used to collect information about an error
  • Access: public

Parameters:

integer   $error   — 

[ Top ]

lastInsertID   [line 465]

mixed lastInsertID( [string $table = null], [ $field = null], mixed $id)

returns the autoincrement ID if supported or $id
  • Return: MDB2 Error Object or id
  • Access: public

Parameters:

mixed   $id   —  value as returned by getBeforeId()
string   $table   —  name of the table into which a new row was inserted
   $field   — 

[ Top ]

nextID   [line 418]

mixed nextID( string $seq_name, [boolean $ondemand = true])

returns the next free id of a sequence
  • Return: MDB2 Error Object or id
  • Access: public

Parameters:

string   $seq_name   —  name of the sequence
boolean   $ondemand   —  when true the seqence is automatic created, if it not exists

[ Top ]

rollback   [line 205]

mixed rollback( )

Cancel any database changes done during a transaction that is in progress.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

_doQuery   [line 316]

result _doQuery( string $query, [boolean $is_manip = false], [resource $connection = null], [string $database_name = null])

Execute a query
  • Return: or error object
  • Access: protected

Parameters:

string   $query   —  query
boolean   $is_manip   —  if the query is a manipulation query
resource   $connection   — 
string   $database_name   — 

[ Top ]

_modifyQuery   [line 389]

string _modifyQuery( string $query, boolean $is_manip, integer $limit, integer $offset)

Changes a query string for various DBMS specific reasons
  • Return: modified query
  • Access: protected

Parameters:

string   $query   —  query to modify
boolean   $is_manip   —  if it is a DML query
integer   $limit   —  limit the number of rows
integer   $offset   —  start reading from given offset

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:39:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.