source: Dev/trunk/rdfapi/sparql/SparqlEngineDb/PreparedStatement.php @ 12

Last change on this file since 12 was 12, checked in by basvannuland, 14 years ago

Added RAP RDF API
Added RDF reader writer for save and load survey

File size: 1.2 KB
Line 
1<?php
2require_once RDFAPI_INCLUDE_DIR . 'sparql/SparqlEngine/PreparedStatement.php';;
3
4/**
5*   A prepared statement that can be execute()d later multiple
6*   times with different variable values.
7*
8*   @author Christian Weiske <cweiske@cweiske.de>
9*   @license http://www.gnu.org/licenses/lgpl.html LGPL
10*
11*   @package sparql
12*/
13class SparqlEngineDb_PreparedStatement extends SparqlEngine_PreparedStatement
14{
15    protected $sparqlEngine = null;
16
17
18    public function __construct(SparqlEngineDb $sparqlEngine)
19    {
20        $this->sparqlEngine = $sparqlEngine;
21    }//public function __construct(SparqlEngineDb $sparqlEngine)
22
23
24
25    /**
26    *   Execute the prepared statement and returns the result.
27    *
28    *   @param array $arVariables   Array of sparql query variables => values
29    *   @param string $resultform   Which result form you need
30    *   @return mixed   Anything a sparql query can return
31    */
32    public function execute($arVariables, $resultform = false)
33    {
34        return $this->sparqlEngine->execute($arVariables, $resultform);
35    }//public function execute($arVariables, $resultform)
36
37}//class SparqlEngineDb_PreparedStatement extends SparqlEngine_PreparedStatement
38?>
Note: See TracBrowser for help on using the repository browser.