Static.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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-2015 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. * @see Zend_Db_Statement_Interface
  24. */
  25. require_once 'Zend/Db/Statement/Interface.php';
  26. /**
  27. * Emulates a PDOStatement for native database adapters.
  28. *
  29. * @category Zend
  30. * @package Zend_Db
  31. * @subpackage UnitTests
  32. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  33. * @license http://framework.zend.com/license/new-bsd New BSD License
  34. */
  35. class Zend_Db_Statement_Static implements Zend_Db_Statement_Interface
  36. {
  37. /**
  38. * binds a PHP variable to an output column in a result set
  39. */
  40. public function bindColumn($column, &$param, $type = null)
  41. {
  42. }
  43. /**
  44. * binds a PHP variable to a parameter in the prepared statement
  45. */
  46. public function bindParam($parameter, &$variable, $type = null, $length = null, $options = null)
  47. {
  48. }
  49. /**
  50. * binds a value to a parameter in the prepared statement
  51. */
  52. public function bindValue($parameter, $value, $type = null)
  53. {
  54. }
  55. /**
  56. * closes the cursor, allowing the statement to be executed again
  57. */
  58. public function closeCursor()
  59. {
  60. }
  61. /**
  62. * returns the number of columns in the result set
  63. */
  64. public function columnCount()
  65. {
  66. }
  67. /**
  68. * retrieves an error code, if any, from the statement
  69. */
  70. public function errorCode()
  71. {
  72. }
  73. /**
  74. * retrieves an array of error information, if any, from the statement
  75. */
  76. public function errorInfo()
  77. {
  78. }
  79. /**
  80. * executes a prepared statement
  81. */
  82. public function execute(array $params = array())
  83. {
  84. }
  85. /**
  86. * fetches a row from a result set
  87. */
  88. public function fetch($style = null, $cursor = null, $offset = null)
  89. {
  90. }
  91. /**
  92. * fetches an array containing all of the rows from a result set
  93. */
  94. public function fetchAll($style = null, $col = null)
  95. {
  96. }
  97. /**
  98. * returns the data from a single column in a result set
  99. */
  100. public function fetchColumn($col = 0)
  101. {
  102. }
  103. /**
  104. * fetches the next row and returns it as an object
  105. */
  106. public function fetchObject($class = 'stdClass', array $config = array())
  107. {
  108. }
  109. /**
  110. * retrieves a Zend_Db_Statement attribute
  111. */
  112. public function getAttribute($key)
  113. {
  114. }
  115. /**
  116. * retrieves the next rowset (result set)
  117. */
  118. public function nextRowset()
  119. {
  120. }
  121. /**
  122. * returns the number of rows that were affected by the execution of an SQL statement
  123. */
  124. public function rowCount()
  125. {
  126. }
  127. /**
  128. * sets a Zend_Db_Statement attribute
  129. */
  130. public function setAttribute($key, $val)
  131. {
  132. }
  133. /**
  134. * sets the fetch mode for a Zend_Db_Statement
  135. */
  136. public function setFetchMode($mode)
  137. {
  138. }
  139. }