You are here

function ARC_sparql2sql_rewriter::get_sql in Taxonomy import/export via XML 5.2

Same name and namespace in other branches
  1. 5 arc/ARC_sparql2sql_rewriter.php \ARC_sparql2sql_rewriter::get_sql()
  2. 6.2 arc/ARC_sparql2sql_rewriter.php \ARC_sparql2sql_rewriter::get_sql()
  3. 6 arc/ARC_sparql2sql_rewriter.php \ARC_sparql2sql_rewriter::get_sql()

File

arc/ARC_sparql2sql_rewriter.php, line 86

Class

ARC_sparql2sql_rewriter

Code

function get_sql($args = "") {
  $this
    ->init($args);
  $this->term2alias = array();
  $this->optional_term2alias = array();
  $this->val_match_vars = array();
  $this->graphs = array();
  if (isset($this->infos["query_type"])) {
    $mthd = "get_" . $this->infos["query_type"] . "_sql";
    if (method_exists($this, $mthd)) {
      return $this
        ->{$mthd}();
    }
  }
  return $this->api
    ->error("Undefined or unsupported query type '" . $this->infos["query_type"] . "'.");
}