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

Class: PhpLight_Db_Adapter_Mysqli

Source Location: /Db/Adapter/Mysqli.php

Class Overview

PhpLight_Db_Adapter_Abstract
   |
   --PhpLight_Db_Adapter_Mysqli

Mysqli database adapter


Author(s):

  • Indiana Jones

Version:

  • 1.0

Variables

Methods


Inherited Variables

Inherited Methods

Class: PhpLight_Db_Adapter_Abstract

PhpLight_Db_Adapter_Abstract::__construct()
Constructor.
PhpLight_Db_Adapter_Abstract::beginTransaction()
Leave autocommit mode and begin a transaction.
PhpLight_Db_Adapter_Abstract::commit()
Commit a transaction and return to autocommit mode.
PhpLight_Db_Adapter_Abstract::fetchAll()
Fetches all SQL result rows as a sequential array.
PhpLight_Db_Adapter_Abstract::fetchAssoc()
Fetches all SQL result rows as an associative array.
PhpLight_Db_Adapter_Abstract::fetchOne()
Fetches the first column of the first row of the SQL result.
PhpLight_Db_Adapter_Abstract::fetchRow()
Fetches the first row of the SQL result.
PhpLight_Db_Adapter_Abstract::getConfig()
Returns the configuration variables in this adapter.
PhpLight_Db_Adapter_Abstract::getConnection()
Returns the underlying database connection object or resource.
PhpLight_Db_Adapter_Abstract::isConnected()
Test if a connection is active
PhpLight_Db_Adapter_Abstract::prepare()
Prepare a statement and return a PDOStatement-like object.
PhpLight_Db_Adapter_Abstract::query()
Prepares and executes an SQL statement with bound data.
PhpLight_Db_Adapter_Abstract::rollBack()
Roll back a transaction and return to autocommit mode.
PhpLight_Db_Adapter_Abstract::_beginTransaction()
Begin a transaction.
PhpLight_Db_Adapter_Abstract::_checkRequiredOptions()
Check for config options that are mandatory.
PhpLight_Db_Adapter_Abstract::_commit()
Commit a transaction.
PhpLight_Db_Adapter_Abstract::_connect()
Creates a connection to the database.
PhpLight_Db_Adapter_Abstract::_quote()
Quote a raw string.
PhpLight_Db_Adapter_Abstract::_rollBack()
Roll-back a transaction.

Class Details

[line 18]
Mysqli database adapter

$Id: Mysqli.php 500 2011-09-12 07:23:27Z indy $

$LastChangedBy: indy $

$LastChangedDate: 2011-09-12 10:23:27 +0300 (Mon, 12 Sep 2011) $

$Rev: 500 $




Tags:

author:  Indiana Jones
version:  1.0


[ Top ]


Class Variables

$_stmt =  null

[line 23]



Tags:

access:  protected



[ Top ]



Class Methods


method closeConnection [line 117]

void closeConnection( )

Force the connection to close.



Tags:

access:  public


[ Top ]

method getServerVersion [line 165]

string getServerVersion( )

Retrieve server version in PHP style



Tags:

access:  public


[ Top ]

method isConnected [line 107]

boolean isConnected( )

Test if a connection is active



Tags:

access:  public


Overrides PhpLight_Db_Adapter_Abstract::isConnected() (Test if a connection is active)

[ Top ]

method lastInsertId [line 155]

integer lastInsertId( )

Gets the last ID generated automatically



Tags:

access:  public


[ Top ]

method prepare [line 132]

PhpLight_Db_Statement_Mysqli prepare( string $sql)

Prepare a statement and return a PDOStatement-like object.



Tags:

access:  public


Overrides PhpLight_Db_Adapter_Abstract::prepare() (Prepare a statement and return a PDOStatement-like object.)

Parameters:

string   $sql   SQL query

[ Top ]

method _beginTransaction [line 180]

void _beginTransaction( )

Begin a transaction.



Tags:

access:  protected


Overrides PhpLight_Db_Adapter_Abstract::_beginTransaction() (Begin a transaction.)

[ Top ]

method _commit [line 191]

void _commit( )

Commit a transaction.



Tags:

access:  protected


Overrides PhpLight_Db_Adapter_Abstract::_commit() (Commit a transaction.)

[ Top ]

method _connect [line 48]

void _connect( )

Creates a connection to the database.



Tags:

throws:  PhpLight_Db_Adapter_Exception
access:  protected


Overrides PhpLight_Db_Adapter_Abstract::_connect() (Creates a connection to the database.)

[ Top ]

method _quote [line 32]

string _quote( mixed $value)

Quote a raw string.



Tags:

return:  Quoted string
access:  protected


Overrides PhpLight_Db_Adapter_Abstract::_quote() (Quote a raw string.)

Parameters:

mixed   $value   Raw string

[ Top ]

method _rollBack [line 203]

void _rollBack( )

Roll-back a transaction.



Tags:

access:  protected


Overrides PhpLight_Db_Adapter_Abstract::_rollBack() (Roll-back a transaction.)

[ Top ]


Documentation generated on Fri, 07 Oct 2011 08:06:19 +0300 by phpDocumentor 1.4.3