8 private $categoryCodes =
array();
9 private $categoryNames =
array();
10 private $sections =
array();
11 private $items =
array();
16 $this->createCategory($categoryCode);
17 $this->items[$categoryCode][] = $item;
21 $this->createCategory($categoryCode);
22 foreach ($items as $item)
24 $this->items[$categoryCode][] = $item;
28 public function addSection($categoryCode =
"", $sectionCode, $sectionName)
30 $this->createCategory($categoryCode);
32 $this->sections[$categoryCode][] =
array(
41 $this->categoryNames[$categoryCode] =
$name;
44 private function createCategory($categoryCode)
46 if(!array_key_exists($categoryCode,$this->categoryCodes))
48 $this->categoryCodes[$categoryCode] =
array();
49 $this->sections[$categoryCode] =
array();
50 $this->categoryNames[$categoryCode] =
"";
59 "data" => $this->items,
60 "sections" => $this->sections,
61 "names" => $this->categoryNames,
64 header(
"Content-Type: application/x-javascript");
65 echo json_encode($listData);
setCategoryName($categoryCode="", $name="")
addItem($categoryCode="", $item=array())
addItems($categoryCode="", $items=array())
addSection($categoryCode="", $sectionCode, $sectionName)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)