ResultSet.php

Go to the documentation of this file.
00001 <?php 00002 /* 00003 * $Id: ResultSet.php,v 1.2 2004/03/29 18:46:46 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 00060 class ResultSet 00061 { 00065 function FETCHMODE_ASSOC() { return (1); } 00066 00070 function FETCHMODE_NUM() { return (2); } 00071 00082 function getResource() 00083 { 00084 trigger_error ( 00085 "ResultSet::getResource(): abstract function has to be reimplemented !", 00086 E_USER_ERROR 00087 ); 00088 } 00089 00097 function setFetchmode($mode) 00098 { 00099 trigger_error ( 00100 "ResultSet::setFetchmode(): abstract function has to be reimplemented !", 00101 E_USER_ERROR 00102 ); 00103 } 00104 00109 function getFetchmode() 00110 { 00111 trigger_error ( 00112 "ResultSet::getFetchmode(): abstract function has to be reimplemented !", 00113 E_USER_ERROR 00114 ); 00115 } 00116 00129 function isIgnoreAssocCase() 00130 { 00131 trigger_error ( 00132 "ResultSet::(isIgnoreAssocCase): abstract function has to be reimplemented !", 00133 E_USER_ERROR 00134 ); 00135 } 00136 00143 function next() 00144 { 00145 trigger_error ( 00146 "ResultSet::(): abstract function has to be reimplemented !", 00147 E_USER_ERROR 00148 ); 00149 } 00150 00159 function previous() 00160 { 00161 trigger_error ( 00162 "ResultSet::(): abstract function has to be reimplemented !", 00163 E_USER_ERROR 00164 ); 00165 } 00166 00180 function relative($offset) 00181 { 00182 trigger_error ( 00183 "ResultSet::(): abstract function has to be reimplemented !", 00184 E_USER_ERROR 00185 ); 00186 } 00187 00188 00200 function absolute($pos) 00201 { 00202 trigger_error ( 00203 "ResultSet::(): abstract function has to be reimplemented !", 00204 E_USER_ERROR 00205 ); 00206 } 00207 00233 function seek($rownum) 00234 { 00235 trigger_error ( 00236 "ResultSet::(): abstract function has to be reimplemented !", 00237 E_USER_ERROR 00238 ); 00239 } 00240 00247 function first() 00248 { 00249 trigger_error ( 00250 "ResultSet::(): abstract function has to be reimplemented !", 00251 E_USER_ERROR 00252 ); 00253 } 00254 00261 function last() 00262 { 00263 trigger_error ( 00264 "ResultSet::(): abstract function has to be reimplemented !", 00265 E_USER_ERROR 00266 ); 00267 } 00268 00275 function beforeFirst() 00276 { 00277 trigger_error ( 00278 "ResultSet::(): abstract function has to be reimplemented !", 00279 E_USER_ERROR 00280 ); 00281 } 00282 00283 00292 function afterLast() 00293 { 00294 trigger_error ( 00295 "ResultSet::(): abstract function has to be reimplemented !", 00296 E_USER_ERROR 00297 ); 00298 } 00299 00300 00306 function isAfterLast() 00307 { 00308 trigger_error ( 00309 "ResultSet::(): abstract function has to be reimplemented !", 00310 E_USER_ERROR 00311 ); 00312 } 00313 00319 function isBeforeFirst() 00320 { 00321 trigger_error ( 00322 "ResultSet::(): abstract function has to be reimplemented !", 00323 E_USER_ERROR 00324 ); 00325 } 00326 00333 function getCursorPos() 00334 { 00335 trigger_error ( 00336 "ResultSet::(): abstract function has to be reimplemented !", 00337 E_USER_ERROR 00338 ); 00339 } 00340 00345 function getRow() 00346 { 00347 trigger_error ( 00348 "ResultSet::(): abstract function has to be reimplemented !", 00349 E_USER_ERROR 00350 ); 00351 } 00352 00358 function getRecordCount() 00359 { 00360 trigger_error ( 00361 "ResultSet::(): abstract function has to be reimplemented !", 00362 E_USER_ERROR 00363 ); 00364 } 00365 00372 function close() 00373 { 00374 trigger_error ( 00375 "ResultSet::(): abstract function has to be reimplemented !", 00376 E_USER_ERROR 00377 ); 00378 } 00379 00388 function get($column) 00389 { 00390 trigger_error ( 00391 "ResultSet::(): abstract function has to be reimplemented !", 00392 E_USER_ERROR 00393 ); 00394 } 00395 00404 function getArray($column) 00405 { 00406 trigger_error ( 00407 "ResultSet::(): abstract function has to be reimplemented !", 00408 E_USER_ERROR 00409 ); 00410 } 00411 00419 function getBoolean($column) 00420 { 00421 trigger_error ( 00422 "ResultSet::(): abstract function has to be reimplemented !", 00423 E_USER_ERROR 00424 ); 00425 } 00426 00434 function getBlob($column) 00435 { 00436 trigger_error ( 00437 "ResultSet::(): abstract function has to be reimplemented !", 00438 E_USER_ERROR 00439 ); 00440 } 00441 00449 function getClob($column) 00450 { 00451 trigger_error ( 00452 "ResultSet::(): abstract function has to be reimplemented !", 00453 E_USER_ERROR 00454 ); 00455 } 00456 00469 function getDate($column, $format = '%x') 00470 { 00471 trigger_error ( 00472 "ResultSet::(): abstract function has to be reimplemented !", 00473 E_USER_ERROR 00474 ); 00475 } 00476 00484 function getFloat($column) 00485 { 00486 trigger_error ( 00487 "ResultSet::(): abstract function has to be reimplemented !", 00488 E_USER_ERROR 00489 ); 00490 } 00491 00500 function getInt($column) 00501 { 00502 trigger_error ( 00503 "ResultSet::(): abstract function has to be reimplemented !", 00504 E_USER_ERROR 00505 ); 00506 } 00507 00516 function getString($column) 00517 { 00518 trigger_error ( 00519 "ResultSet::(): abstract function has to be reimplemented !", 00520 E_USER_ERROR 00521 ); 00522 } 00523 00536 function getTime($column, $format = '%X') 00537 { 00538 trigger_error ( 00539 "ResultSet::(): abstract function has to be reimplemented !", 00540 E_USER_ERROR 00541 ); 00542 } 00543 00557 function getTimestamp($column, $format = 'Y-m-d H:i:s') 00558 { 00559 trigger_error ( 00560 "ResultSet::(): abstract function has to be reimplemented !", 00561 E_USER_ERROR 00562 ); 00563 } 00564 00565 } 00566

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


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS