4 require_once
"./Services/Object/classes/class.ilObject.php";
16 public function __construct($a_id = 0, $a_call_by_reference =
true)
22 public function delete()
34 foreach($tree->getPathFull($a_ref_id) as $data)
36 $res[] = $data[
'title'];
48 include_once
"Services/Object/classes/class.ilObjectServiceSettingsGUI.php";
50 $sql =
"SELECT oref.ref_id, od.obj_id, od.type obj_type, od.title obj_title,".
51 " tu.tax_id, od2.title tax_title, cs.value tax_status".
52 " FROM object_data od".
53 " JOIN object_reference oref ON (od.obj_id = oref.obj_id)".
54 " JOIN tax_usage tu ON (tu.obj_id = od.obj_id)".
55 " JOIN object_data od2 ON (od2.obj_id = tu.tax_id)".
57 " WHERE od.type = ".$ilDB->quote(
"cat",
"text").
58 " AND tu.tax_id > ".$ilDB->quote(0,
"integer");
59 $set = $ilDB->query($sql);
60 while(
$row = $ilDB->fetchAssoc($set))
62 if(!$tree->isDeleted(
$row[
"ref_id"]))
65 "tax_id" => $row[
"tax_id"]
66 ,
"tax_title" => $row[
"tax_title"]
67 ,
"tax_status" => (
bool)$row[
"tax_status"]
68 ,
"obj_title" => $row[
"obj_title"]
69 ,
"obj_type" => $row[
"obj_type"]
70 ,
"obj_id" => $row[
"obj_id"]
71 ,
"ref_id" => $row[
"ref_id"]
72 ,
"path" => $this->
getPath($row[
"ref_id"])