function ARC_api_helper::get_prop_table_infos in Taxonomy import/export via XML 5.2
Same name and namespace in other branches
- 5 arc/ARC_api_helper.php \ARC_api_helper::get_prop_table_infos()
- 6.2 arc/ARC_api_helper.php \ARC_api_helper::get_prop_table_infos()
- 6 arc/ARC_api_helper.php \ARC_api_helper::get_prop_table_infos()
File
- arc/
ARC_api_helper.php, line 212
Class
Code
function get_prop_table_infos() {
if (!isset($this->prop_table_infos)) {
$this->prop_table_infos = array();
if (isset($this->config["prop_tables"]) && is_array($this->config["prop_tables"])) {
$tbl_base = $this->config["prefix"] . "_triple";
foreach ($this->config["prop_tables"] as $cur_prop_tbl) {
foreach ($cur_prop_tbl["props"] as $cur_prop) {
$tbl_name = $cur_prop_tbl["prop_type"] == "obj" ? $tbl_base . "_op_" . $cur_prop_tbl["name"] : $tbl_base . "_dp_" . $cur_prop_tbl["name"];
$this->prop_table_infos[$cur_prop] = array(
"tbl" => $tbl_name,
"type" => $cur_prop_tbl["prop_type"],
);
}
}
}
}
return $this->prop_table_infos;
}