Class SparqlEngineDb_Offsetter

Description

Determines the offset in a row of sql queries.

Located in /sparql/SparqlEngineDb/Offsetter.php (line 11)


	
			
Method Summary
static string getLimitSql (Query $query,  $dbConn)
SparqlEngineDb_Offsetter __construct ( $dbConn, Query $query)
array determineOffset (array $arSqls)
int getCount (array $arSql)
Methods
static getLimitSql (line 82)

Creates a sql LIMIT statement if the sparql query needs one.

This method is needed because AdoDb does not support limits with prepared statements. It's a pity.

  • return: SQL command to be appended to a query, to limit the number of result rows returned.
  • access: public
static string getLimitSql (Query $query,  $dbConn)
  • Query $query
  • ADOConnection $dbConn
Constructor __construct (line 13)
  • access: public
SparqlEngineDb_Offsetter __construct ( $dbConn, Query $query)
  • ADOConnection $dbConn
  • Query $query
determineOffset (line 31)

Determines the offset in the sqls, the position to start form.

  • return: Array of two values: The first determines the index of the sql query to begin with, the second is the row offset that should be used in the final SQL query.
  • access: public
array determineOffset (array $arSqls)
  • array $arSqls: Array of SQL query parts as returned by SparqlEngine_TypeSorter::getOrderifiedSqls()
getCount (line 59)

Returns the number of rows that the given query will return.

  • return: Number of rows returned.
  • access: protected
int getCount (array $arSql)
  • array $arSql: Array with sql parts and at least keys 'from' and 'where' set.

Documentation generated on Fri, 1 Jun 2007 16:50:05 +0200 by phpDocumentor 1.3.2