Semantic MediaWiki and related extensions
Static Public Member Functions | List of all members
SMW\Query\DebugOutputFormatter Class Reference

Static Public Member Functions

static getStringFrom ($storeName, array $entries, Query $query=null)
 
static doFormatSQLExplainOutput ($type, $res)
 
static doFormatSPARQLStatement ($sparql)
 
static doFormatSQLStatement ($sql, $alias)
 

Detailed Description

GNU GPL v2+

Since
2.0
Author
mwjames
Markus Krötzsch

Member Function Documentation

static SMW\Query\DebugOutputFormatter::doFormatSPARQLStatement (   $sparql)
static
Since
2.5
Parameters
string$sparql
Returns
string
static SMW\Query\DebugOutputFormatter::doFormatSQLExplainOutput (   $type,
  $res 
)
static
Since
2.5
Parameters
string$type
array$rows
Returns
string
static SMW\Query\DebugOutputFormatter::doFormatSQLStatement (   $sql,
  $alias 
)
static
Since
2.5
Parameters
string$sql
string$alias
Returns
string
static SMW\Query\DebugOutputFormatter::getStringFrom (   $storeName,
array  $entries,
Query  $query = null 
)
static

Generate textual debug output that shows an arbitrary list of informative fields. Used for formatting query debug output.

Note
All strings given must be usable and safe in wiki and HTML contexts.
Parameters
$storeNamestring name of the storage backend for which this is generated
$entriesarray of name => value of informative entries to display
$querySMWQuery or null, if given add basic data about this query as well
Returns
string

The documentation for this class was generated from the following file: