169 lines
3.6 KiB
PHP
169 lines
3.6 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* Zend Framework
|
||
|
*
|
||
|
* LICENSE
|
||
|
*
|
||
|
* This source file is subject to the new BSD license that is bundled
|
||
|
* with this package in the file LICENSE.txt.
|
||
|
* It is also available through the world-wide-web at this URL:
|
||
|
* http://framework.zend.com/license/new-bsd
|
||
|
* If you did not receive a copy of the license and are unable to
|
||
|
* obtain it through the world-wide-web, please send an email
|
||
|
* to license@zend.com so we can send you a copy immediately.
|
||
|
*
|
||
|
* @category Zend
|
||
|
* @package Zend_Db
|
||
|
* @subpackage UnitTests
|
||
|
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||
|
* @version $Id: Static.php 17363 2009-08-03 07:40:18Z bkarwin $
|
||
|
*/
|
||
|
|
||
|
|
||
|
/**
|
||
|
* PHPUnit_Util_Filter
|
||
|
*/
|
||
|
require_once 'PHPUnit/Util/Filter.php';
|
||
|
|
||
|
|
||
|
PHPUnit_Util_Filter::addFileToFilter(__FILE__);
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @see Zend_Db_Statement_Interface
|
||
|
*/
|
||
|
require_once 'Zend/Db/Statement/Interface.php';
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Emulates a PDOStatement for native database adapters.
|
||
|
*
|
||
|
* @category Zend
|
||
|
* @package Zend_Db
|
||
|
* @subpackage UnitTests
|
||
|
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||
|
*/
|
||
|
class Zend_Db_Statement_Static implements Zend_Db_Statement_Interface
|
||
|
{
|
||
|
/**
|
||
|
* binds a PHP variable to an output column in a result set
|
||
|
*/
|
||
|
public function bindColumn($column, &$param, $type = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* binds a PHP variable to a parameter in the prepared statement
|
||
|
*/
|
||
|
public function bindParam($parameter, &$variable, $type = null, $length = null, $options = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* binds a value to a parameter in the prepared statement
|
||
|
*/
|
||
|
public function bindValue($parameter, $value, $type = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* closes the cursor, allowing the statement to be executed again
|
||
|
*/
|
||
|
public function closeCursor()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* returns the number of columns in the result set
|
||
|
*/
|
||
|
public function columnCount()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* retrieves an error code, if any, from the statement
|
||
|
*/
|
||
|
public function errorCode()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* retrieves an array of error information, if any, from the statement
|
||
|
*/
|
||
|
public function errorInfo()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* executes a prepared statement
|
||
|
*/
|
||
|
public function execute(array $params = array())
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* fetches a row from a result set
|
||
|
*/
|
||
|
public function fetch($style = null, $cursor = null, $offset = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* fetches an array containing all of the rows from a result set
|
||
|
*/
|
||
|
public function fetchAll($style = null, $col = null)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* returns the data from a single column in a result set
|
||
|
*/
|
||
|
public function fetchColumn($col = 0)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* fetches the next row and returns it as an object
|
||
|
*/
|
||
|
public function fetchObject($class = 'stdClass', array $config = array())
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* retrieves a Zend_Db_Statement attribute
|
||
|
*/
|
||
|
public function getAttribute($key)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* retrieves the next rowset (result set)
|
||
|
*/
|
||
|
public function nextRowset()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* returns the number of rows that were affected by the execution of an SQL statement
|
||
|
*/
|
||
|
public function rowCount()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* sets a Zend_Db_Statement attribute
|
||
|
*/
|
||
|
public function setAttribute($key, $val)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* sets the fetch mode for a Zend_Db_Statement
|
||
|
*/
|
||
|
public function setFetchMode($mode)
|
||
|
{
|
||
|
}
|
||
|
}
|