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

Class: PhpLight_Db_Statement_Abstract

Source Location: /Db/Statement/Abstract.php

Class Overview


Abstract statement


Author(s):

  • Indiana Jones

Version:

  • 1.0

Variables

Methods


Child classes:

PhpLight_Db_Statement_Mysql
Based on Zend Framework MySQL adapter
PhpLight_Db_Statement_Mysqli
Mysqli statement

Class Details

[line 18]
Abstract statement

$Id: Abstract.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
abstract:  


[ Top ]


Class Variables

$_adapter =  null

[line 28]



Tags:

access:  protected



[ Top ]

$_bindParam = array()

[line 35]

Query parameter bindings; covers bindParam() and bindValue().



Tags:

access:  protected

Type:   array


[ Top ]

$_sqlSplit = array()

[line 42]

SQL string split into an array at placeholders.



Tags:

access:  protected

Type:   array


[ Top ]

$_stmt =  null

[line 23]



Tags:

var:  driver level statement object/resource
access:  protected

Type:   resource|object The


[ Top ]



Class Methods


constructor __construct [line 50]

PhpLight_Db_Statement_Abstract __construct( PhpLight_Db_Adapter_Abstract $adapter, string $sql)

Constructor for a statement.



Tags:

access:  public


Parameters:

PhpLight_Db_Adapter_Abstract   $adapter  
string   $sql   And SQL string

[ Top ]

method execute [line 74]

boolean execute( [ $params = array()])

Executes a prepared statement.



Tags:

access:  public


Parameters:

array   $params   Values to bind to parameter placeholders.

[ Top ]

method fetch [line 100]

array fetch( )

Fetch method, always returns the data as an associative array



Tags:

abstract:  
access:  public


Overridden in child classes as:

PhpLight_Db_Statement_Mysql::fetch()
Fetches a row from the result set.
PhpLight_Db_Statement_Mysqli::fetch()
Fetches a row from the result set.

[ Top ]

method fetchAll [line 84]

array fetchAll( )

Returns an array containing all of the result set rows.



Tags:

return:  Collection of rows, each in a format by the fetch mode.
access:  public


[ Top ]

method _prepare [line 63]

void _prepare( $sql)

Internal method called by abstract statment constructor to setup the driver level statement



Tags:

access:  protected


Overridden in child classes as:

PhpLight_Db_Statement_Mysql::_prepare()
PhpLight_Db_Statement_Mysqli::_prepare()

Parameters:

   $sql  

[ Top ]


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