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

Class: PhpLight_Db_Adapter_Mysql

Source Location: /Db/Adapter/Mysql.php

Class Overview

PhpLight_Db_Adapter_Abstract
   |
   --PhpLight_Db_Adapter_Mysql

Based on Zend Framework MySQL adapter


Author(s):

  • Jenei Viktor Attila

Copyright:

  • 2010 Jenei Viktor Attila

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 25]
Based on Zend Framework MySQL adapter



Tags:

author:  Jenei Viktor Attila
copyright:  2010 Jenei Viktor Attila
license:  LGPL


[ Top ]


Class Variables

$_stmt =  null

[line 30]



Tags:

access:  protected



[ Top ]



Class Methods


method closeConnection [line 105]

void closeConnection( )

Force the connection to close.



Tags:

access:  public


[ Top ]

method getServerVersion [line 152]

string getServerVersion( )

Retrieve server version in PHP style



Tags:

access:  public


[ Top ]

method isConnected [line 95]

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 142]

integer lastInsertId( )

Gets the last ID generated automatically by an AUTOINCREMENT column.



Tags:

access:  public


[ Top ]

method prepare [line 120]

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 167]

void _beginTransaction( )

Begin a transaction.



Tags:

access:  protected


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

[ Top ]

method _commit [line 178]

void _commit( )

Commit a transaction.



Tags:

access:  protected


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

[ Top ]

method _connect [line 53]

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 39]

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 189]

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