File io/db/SelectQueryResult.class.php
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42:
<?php
/**
* this class encapsulate a query result set
* usage is:
* <code>
* foreach ($my_query_result as $result) {
* // do something with the $result
* }
* </code>
* @package IO
* @subpackage DB
* @copyright © 2005-2019 PHPBoost
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL-3.0
* @author Loic ROUCHON <horn@phpboost.com>
* @version PHPBoost 5.2 - last update: 2014 12 22
* @since PHPBoost 3.0 - 2009 11 02
*/
interface SelectQueryResult extends QueryResult, iterator
{
const FETCH_NUM = 0x00;
const FETCH_ASSOC = 0x01;
function set_fetch_mode($fetch_mode);
/**
* returns the number of returned rows by this query
* @return int the number of returned rows by this query
*/
function get_rows_count();
function has_next();
function fetch();
/**
* free the resource. If not done manually, this is done in the destructor
*/
function dispose();
}
?>