Statement.php

Go to the documentation of this file.
00001 <?php 00002 /* 00003 * $Id: Statement.php,v 1.1 2004/03/25 22:59:39 micha Exp $ 00004 * 00005 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00006 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00007 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00008 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00009 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00010 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00011 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00012 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00013 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00014 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00015 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00016 * 00017 * This software consists of voluntary contributions made by many individuals 00018 * and is licensed under the LGPL. For more information please see 00019 * <http://creole.phpdb.org>. 00020 */ 00021 00022 // 00023 // STATUS: 00024 // - ported: y 00025 // - compiled: y 00026 // - tested: n 00027 // 00028 00043 class Statement 00044 { 00052 function setLimit($v) 00053 { 00054 trigger_error ( 00055 "Statement::(): abstract function has to be reimplemented !", 00056 E_USER_ERROR 00057 ); 00058 } 00059 00064 function getLimit() 00065 { 00066 trigger_error ( 00067 "Statement::(): abstract function has to be reimplemented !", 00068 E_USER_ERROR 00069 ); 00070 } 00071 00080 function setOffset($v) 00081 { 00082 trigger_error ( 00083 "Statement::(): abstract function has to be reimplemented !", 00084 E_USER_ERROR 00085 ); 00086 } 00087 00093 function getOffset() 00094 { 00095 trigger_error ( 00096 "Statement::(): abstract function has to be reimplemented !", 00097 E_USER_ERROR 00098 ); 00099 } 00100 00108 function close() 00109 { 00110 trigger_error ( 00111 "Statement::(): abstract function has to be reimplemented !", 00112 E_USER_ERROR 00113 ); 00114 } 00115 00126 function execute($sql, $fetchmode = null) 00127 { 00128 trigger_error ( 00129 "Statement::(): abstract function has to be reimplemented !", 00130 E_USER_ERROR 00131 ); 00132 } 00133 00141 function & getResultSet() 00142 { 00143 trigger_error ( 00144 "Statement::(): abstract function has to be reimplemented !", 00145 E_USER_ERROR 00146 ); 00147 } 00148 00154 function & getUpdateCount() 00155 { 00156 trigger_error ( 00157 "Statement::(): abstract function has to be reimplemented !", 00158 E_USER_ERROR 00159 ); 00160 } 00161 00170 function & executeQuery($sql, $fetchmode = null) 00171 { 00172 trigger_error ( 00173 "Statement::(): abstract function has to be reimplemented !", 00174 E_USER_ERROR 00175 ); 00176 } 00177 00185 function executeUpdate($sql) 00186 { 00187 trigger_error ( 00188 "Statement::(): abstract function has to be reimplemented !", 00189 E_USER_ERROR 00190 ); 00191 } 00192 00206 function getMoreResults() 00207 { 00208 trigger_error ( 00209 "Statement::(): abstract function has to be reimplemented !", 00210 E_USER_ERROR 00211 ); 00212 } 00213 00218 function & getConnection() 00219 { 00220 trigger_error ( 00221 "Statement::(): abstract function has to be reimplemented !", 00222 E_USER_ERROR 00223 ); 00224 } 00225 00226 }

This file is part of the Creole[php4] library.


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS