43 $this->items = array();
59 public function addItem($a_ref_id, $a_link, $a_type, $a_title =
"")
61 if ($a_title ==
"" && $a_ref_id > 0)
71 foreach($this->items as $key => $item)
73 if ($item[
"ref_id"] == $a_ref_id)
75 array_splice($this->items, $key, 1);
80 $this->items = array_merge(
81 array(array(
"ref_id" => $a_ref_id,
"link" => $a_link,
"title" => $a_title,
82 "type" => $a_type)), $this->items);
84 $items = serialize($this->items);
97 foreach ($this->items as $it)
99 if ($tree->isInTree($it[
"ref_id"]))