Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
924 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Result renderer interface that any result renderer needs to implement.
|
---|
5 | * A result renderer converts results into a
|
---|
6 | * - for the user - usable result format, e.g. php arrays, xml, json and
|
---|
7 | * so on.
|
---|
8 | *
|
---|
9 | * @author Christian Weiske <cweiske@cweiske.de>
|
---|
10 | * @license http://www.gnu.org/licenses/lgpl.html LGPL
|
---|
11 | *
|
---|
12 | * @package sparql
|
---|
13 | */
|
---|
14 | interface SparqlEngine_ResultRenderer
|
---|
15 | {
|
---|
16 | /**
|
---|
17 | * Converts the database results into the desired output format
|
---|
18 | * and returns the result.
|
---|
19 | *
|
---|
20 | * @param array $arVartable Variable table
|
---|
21 | * @param Query $query SPARQL query object
|
---|
22 | * @param SparqlEngine $engine Sparql Engine to query the database
|
---|
23 | * @return mixed The result as rendered by the result renderers.
|
---|
24 | */
|
---|
25 | public function convertFromResult($arVartable, Query $query, SparqlEngine $engine);
|
---|
26 |
|
---|
27 | }//interface SparqlEngine_ResultRenderer
|
---|
28 |
|
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.