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

Class: PhpLight_Db_Statement_Mysql

Source Location: /Db/Statement/Mysql.php

Class Overview

PhpLight_Db_Statement_Abstract
   |
   --PhpLight_Db_Statement_Mysql

Based on Zend Framework MySQL adapter


Author(s):

  • Jenei Viktor Attila

Version:

  • 1.0

Copyright:

  • 2010 Jenei Viktor Attila

Variables

Methods


Inherited Variables

Inherited Methods

Class: PhpLight_Db_Statement_Abstract

PhpLight_Db_Statement_Abstract::__construct()
Constructor for a statement.
PhpLight_Db_Statement_Abstract::execute()
Executes a prepared statement.
PhpLight_Db_Statement_Abstract::fetch()
Fetch method, always returns the data as an associative array
PhpLight_Db_Statement_Abstract::fetchAll()
Returns an array containing all of the result set rows.
PhpLight_Db_Statement_Abstract::_prepare()
Internal method called by abstract statment constructor to setup the driver level statement

Class Details

[line 25]
Based on Zend Framework MySQL adapter



Tags:

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


[ Top ]


Class Variables

$_preparedSql =

[line 31]

Prepared query


Type:   string


[ Top ]

$_sqlResult =  null

[line 38]

Sql reqult


Type:   object


[ Top ]



Class Methods


method close [line 55]

bool close( )

Closes the cursor and the statement.



Tags:

access:  public


[ Top ]

method errorCode [line 72]

string errorCode( )

Retrieves the error code, if any, associated with the last operation on the statement handle.



Tags:

return:  error code.
access:  public


[ Top ]

method errorInfo [line 86]

array errorInfo( )

Retrieves an array of error information, if any, associated with the last operation on the statement handle.



Tags:

access:  public


[ Top ]

method fetch [line 141]

array fetch( )

Fetches a row from the result set.



Tags:

throws:  PhpLight_Db_Statement_Exception
access:  public


Overrides PhpLight_Db_Statement_Abstract::fetch() (Fetch method, always returns the data as an associative array)

[ Top ]

method _execute [line 105]

bool _execute( [ $params = array()])

Executes a prepared statement.



Tags:

throws:  PhpLight_Db_Statement_Exception
access:  public


Parameters:

array   $params   Values to bind to parameter placeholders.

[ Top ]

method _prepare [line 45]

void _prepare( string $sql)



Tags:

throws:  PhpLight_Db_Statement_Exception
access:  public


Overrides PhpLight_Db_Statement_Abstract::_prepare() (Internal method called by abstract statment constructor to setup the driver level statement)

Parameters:

string   $sql  

[ Top ]


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