Source for file PreparedStatement.php

Documentation is available at PreparedStatement.php

  1. <?php
  2. require_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. *
  10. *   @package sparql
  11. */
  12. {
  13.     protected $sparqlEngine = null;
  14.  
  15.  
  16.     public function __construct(SparqlEngineDb $sparqlEngine)
  17.     {
  18.         $this->sparqlEngine = $sparqlEngine;
  19.     }//public function __construct(SparqlEngineDb $sparqlEngine)
  20.  
  21.  
  22.  
  23.     /**
  24.     *   Execute the prepared statement and returns the result.
  25.     *
  26.     *   @param array $arVariables   Array of sparql query variables => values
  27.     *   @param string $resultform   Which result form you need
  28.     *   @return mixed   Anything a sparql query can return
  29.     */
  30.     public function execute($arVariables$resultform false)
  31.     {
  32.         return $this->sparqlEngine->execute($arVariables$resultform);
  33.     }//public function execute($arVariables, $resultform)
  34.  
  35. }//class SparqlEngineDb_PreparedStatement extends SparqlEngine_PreparedStatement
  36. ?>

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