function ARC_sparql2sql_rewriter::get_sql in Taxonomy import/export via XML 6.2
Same name and namespace in other branches
- 5.2 arc/ARC_sparql2sql_rewriter.php \ARC_sparql2sql_rewriter::get_sql()
- 5 arc/ARC_sparql2sql_rewriter.php \ARC_sparql2sql_rewriter::get_sql()
- 6 arc/ARC_sparql2sql_rewriter.php \ARC_sparql2sql_rewriter::get_sql()
File
- arc/
ARC_sparql2sql_rewriter.php, line 86
Class
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"] . "'.");
}