Class: Doctrine_Adapter_Mysqli

Source Location: /Doctrine/Adapter/Mysqli.php

Class Doctrine_Adapter_Mysqli

Class Overview

Doctrine_Adapter_Mysqli This class is used for special testing purposes.

Located in /Doctrine/Adapter/Mysqli.php [line 34]

Doctrine_Adapter
   |
   --Doctrine_Adapter_Mysqli
Author(s): Information Tags:
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Adapter

Doctrine_Adapter::ATTR_AUTOCOMMIT
Doctrine_Adapter::ATTR_CASE
Doctrine_Adapter::ATTR_CLIENT_VERSION
Doctrine_Adapter::ATTR_CONNECTION_STATUS
Doctrine_Adapter::ATTR_CURSOR
Doctrine_Adapter::ATTR_CURSOR_NAME
Doctrine_Adapter::ATTR_DRIVER_NAME
Doctrine_Adapter::ATTR_ERRMODE
Doctrine_Adapter::ATTR_FETCH_CATALOG_NAMES
Doctrine_Adapter::ATTR_FETCH_TABLE_NAMES
Doctrine_Adapter::ATTR_MAX_COLUMN_LEN
Doctrine_Adapter::ATTR_ORACLE_NULLS
Doctrine_Adapter::ATTR_PERSISTENT
Doctrine_Adapter::ATTR_PREFETCH
Doctrine_Adapter::ATTR_SERVER_INFO
Doctrine_Adapter::ATTR_SERVER_VERSION
Doctrine_Adapter::ATTR_STATEMENT_CLASS
Doctrine_Adapter::ATTR_STRINGIFY_FETCHES
Doctrine_Adapter::ATTR_TIMEOUT
Doctrine_Adapter::CASE_LOWER
Doctrine_Adapter::CASE_NATURAL
Doctrine_Adapter::CASE_UPPER
Doctrine_Adapter::CURSOR_FWDONLY
Doctrine_Adapter::CURSOR_SCROLL
Doctrine_Adapter::ERRMODE_EXCEPTION
Doctrine_Adapter::ERRMODE_SILENT
Doctrine_Adapter::ERRMODE_WARNING
Doctrine_Adapter::ERR_ALREADY_EXISTS
Doctrine_Adapter::ERR_CANT_MAP
Doctrine_Adapter::ERR_CONSTRAINT
Doctrine_Adapter::ERR_DISCONNECTED
Doctrine_Adapter::ERR_MISMATCH
Doctrine_Adapter::ERR_NONE
Doctrine_Adapter::ERR_NOT_FOUND
Doctrine_Adapter::ERR_NOT_IMPLEMENTED
Doctrine_Adapter::ERR_NO_PERM
Doctrine_Adapter::ERR_SYNTAX
Doctrine_Adapter::ERR_TRUNCATED
Doctrine_Adapter::FETCH_ASSOC
Doctrine_Adapter::FETCH_BOTH
Doctrine_Adapter::FETCH_BOUND
Doctrine_Adapter::FETCH_CLASS
Doctrine_Adapter::FETCH_CLASSTYPE
Doctrine_Adapter::FETCH_COLUMN
Doctrine_Adapter::FETCH_FUNC
Doctrine_Adapter::FETCH_GROUP
Doctrine_Adapter::FETCH_INTO
Doctrine_Adapter::FETCH_LAZY
Doctrine_Adapter::FETCH_NAMED
Doctrine_Adapter::FETCH_NUM
Doctrine_Adapter::FETCH_OBJ
Doctrine_Adapter::FETCH_ORI_ABS
Doctrine_Adapter::FETCH_ORI_FIRST
Doctrine_Adapter::FETCH_ORI_LAST
Doctrine_Adapter::FETCH_ORI_NEXT
Doctrine_Adapter::FETCH_ORI_PRIOR
Doctrine_Adapter::FETCH_ORI_REL
Doctrine_Adapter::FETCH_SERIALIZE
Doctrine_Adapter::FETCH_UNIQUE
Doctrine_Adapter::NULL_EMPTY_STRING
Doctrine_Adapter::NULL_NATURAL
Doctrine_Adapter::NULL_TO_STRING
Doctrine_Adapter::PARAM_BOOL
Doctrine_Adapter::PARAM_INPUT_OUTPUT
Doctrine_Adapter::PARAM_INT
Doctrine_Adapter::PARAM_LOB
Doctrine_Adapter::PARAM_NULL
Doctrine_Adapter::PARAM_STMT
Doctrine_Adapter::PARAM_STR

[ Top ]
Method Summary
void   closeConnection()   Force the connection to close.
integer   lastInsertId()   Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
Doctrine_Statement_Mysqli   prepare()   Prepare a statement and return a PDOStatement-like object.
void   _beginTransaction()   Begin a transaction.
void   _commit()   Commit a transaction.
void   _connect()   Creates a connection to the database.
void   _rollBack()   Roll-back a transaction.

[ Top ]
Methods
closeConnection  [line 65]

  void closeConnection( )

Force the connection to close.


API Tags:
Access:  public


[ Top ]
lastInsertId  [line 101]

  integer lastInsertId( [string $tableName = null], [string $primaryKey = null]  )

Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.

As a convention, on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence from the arguments and returns the last id generated by that sequence. On RDBMS brands that support IDENTITY/AUTOINCREMENT columns, this method returns the last value generated for such a column, and the table name argument is disregarded.

MySQL does not support sequences, so $tableName and $primaryKey are ignored.

Parameters:
string   $tableName:  OPTIONAL Name of table.
string   $primaryKey:  OPTIONAL Name of primary key column.

API Tags:
Access:  public


[ Top ]
prepare  [line 77]

  Doctrine_Statement_Mysqli prepare( string $sql  )

Prepare a statement and return a PDOStatement-like object.

Parameters:
string   $sql:  SQL query

API Tags:
Access:  public


[ Top ]
_beginTransaction  [line 112]

  void _beginTransaction( )

Begin a transaction.


API Tags:
Access:  protected


[ Top ]
_commit  [line 123]

  void _commit( )

Commit a transaction.


API Tags:
Access:  protected


[ Top ]
_connect  [line 42]

  void _connect( )

Creates a connection to the database.


API Tags:
Access:  protected

Information Tags:
Throws:  Doctrine_Adapter_Mysqli_Exception

[ Top ]
_rollBack  [line 135]

  void _rollBack( )

Roll-back a transaction.


API Tags:
Access:  protected


[ Top ]