2
0

Static.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Db
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * PHPUnit_Util_Filter
  24. */
  25. require_once 'PHPUnit/Util/Filter.php';
  26. PHPUnit_Util_Filter::addFileToFilter(__FILE__);
  27. /**
  28. * @see Zend_Db_Statement_Interface
  29. */
  30. require_once 'Zend/Db/Statement/Interface.php';
  31. /**
  32. * Emulates a PDOStatement for native database adapters.
  33. *
  34. * @category Zend
  35. * @package Zend_Db
  36. * @subpackage UnitTests
  37. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  38. * @license http://framework.zend.com/license/new-bsd New BSD License
  39. */
  40. class Zend_Db_Statement_Static implements Zend_Db_Statement_Interface
  41. {
  42. /**
  43. * binds a PHP variable to an output column in a result set
  44. */
  45. public function bindColumn($column, &$param, $type = null)
  46. {
  47. }
  48. /**
  49. * binds a PHP variable to a parameter in the prepared statement
  50. */
  51. public function bindParam($parameter, &$variable, $type = null, $length = null, $options = null)
  52. {
  53. }
  54. /**
  55. * binds a value to a parameter in the prepared statement
  56. */
  57. public function bindValue($parameter, $value, $type = null)
  58. {
  59. }
  60. /**
  61. * closes the cursor, allowing the statement to be executed again
  62. */
  63. public function closeCursor()
  64. {
  65. }
  66. /**
  67. * returns the number of columns in the result set
  68. */
  69. public function columnCount()
  70. {
  71. }
  72. /**
  73. * retrieves an error code, if any, from the statement
  74. */
  75. public function errorCode()
  76. {
  77. }
  78. /**
  79. * retrieves an array of error information, if any, from the statement
  80. */
  81. public function errorInfo()
  82. {
  83. }
  84. /**
  85. * executes a prepared statement
  86. */
  87. public function execute(array $params = array())
  88. {
  89. }
  90. /**
  91. * fetches a row from a result set
  92. */
  93. public function fetch($style = null, $cursor = null, $offset = null)
  94. {
  95. }
  96. /**
  97. * fetches an array containing all of the rows from a result set
  98. */
  99. public function fetchAll($style = null, $col = null)
  100. {
  101. }
  102. /**
  103. * returns the data from a single column in a result set
  104. */
  105. public function fetchColumn($col = 0)
  106. {
  107. }
  108. /**
  109. * fetches the next row and returns it as an object
  110. */
  111. public function fetchObject($class = 'stdClass', array $config = array())
  112. {
  113. }
  114. /**
  115. * retrieves a Zend_Db_Statement attribute
  116. */
  117. public function getAttribute($key)
  118. {
  119. }
  120. /**
  121. * retrieves the next rowset (result set)
  122. */
  123. public function nextRowset()
  124. {
  125. }
  126. /**
  127. * returns the number of rows that were affected by the execution of an SQL statement
  128. */
  129. public function rowCount()
  130. {
  131. }
  132. /**
  133. * sets a Zend_Db_Statement attribute
  134. */
  135. public function setAttribute($key, $val)
  136. {
  137. }
  138. /**
  139. * sets the fetch mode for a Zend_Db_Statement
  140. */
  141. public function setFetchMode($mode)
  142. {
  143. }
  144. }