Class

SelectQueryResultMapper

Package: MVC\Model Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Loic ROUCHON horn@phpboost.com Version: PHPBoost 5.2 - last update: 2014 12 22 Since: PHPBoost 3.0 - 2009 10 05 Located at: mvc/model/SelectQueryResultMapper.class.php
SelectQueryResultMapper implements SelectQueryResult
Methods summary
public
# __construct( QueryResult $query_result, MappingModel $model )

initialize the dao

public string
# get_query( )

Returns the executed query converted to dbms dialect

public mixed[string]
# get_parameters( )

Returns the parameters injected in the query

public
# set_fetch_mode( $fetch_mode )
public integer
# get_rows_count( )

returns the number of returned rows by this query

public
public
public
# fetch( )
public
# rewind( )
public
# valid( )
public
# current( )
public
# key( )
public
# next( )
public
# dispose( )

free the resource. If not done manually, this is done in the destructor

Constants inherited from SelectQueryResult
FETCH_ASSOC, FETCH_NUM
Properties summary
protected SelectQueryResult $query_result

the internal query result object

#
protected MappingModel $model

the model that will instantiate retrieved objects

#
Annonces