function ARC_rdf_store::get_store_vars in Taxonomy import/export via XML 6
Same name and namespace in other branches
- 5.2 arc/ARC_rdf_store.php \ARC_rdf_store::get_store_vars()
- 5 arc/ARC_rdf_store.php \ARC_rdf_store::get_store_vars()
- 6.2 arc/ARC_rdf_store.php \ARC_rdf_store::get_store_vars()
1 call to ARC_rdf_store::get_store_vars()
File
- arc/
ARC_rdf_store.php, line 102
Class
Code
function get_store_vars($var_cat = "", $var_cat_qlfr = "") {
$result = array();
if (isset($this->config['enable_vars']) && $this->config['enable_vars']) {
$tbl_name = $this->config["prefix"] . "_store_var";
if ($rs = mysql_query("SELECT var_name, var_val FROM " . $tbl_name . " WHERE var_cat='" . rawurlencode($var_cat) . "' AND var_cat_qlfr='" . md5($var_cat_qlfr) . "'")) {
while ($cur_row = mysql_fetch_array($rs)) {
$result[] = array(
"name" => rawurldecode($cur_row["var_name"]),
"value" => rawurldecode($cur_row["var_val"]),
);
}
}
}
return $result;
}