Lines Matching refs:PAGES
288 private function __buildTopicTree(&$PAGES, $DATA, $SITE, $INSERTDATA = null) { argument
298 if (is_array($PAGES[noNS($SITE)])) {
300 if (!empty($PAGES[noNS($SITE)][noNS($SITE)])) {
301 if (strstr($PAGES[noNS($SITE)][noNS($SITE)], $SITE)) {
303 $PAGES['__' . noNS($SITE)] = $INSERTDATA;
305 $PAGES['__' . noNS($SITE)] = $PAGES[noNS($SITE)][noNS($SITE)];
306 $PAGES[noNS($SITE)][noNS($SITE)] = $INSERTDATA;
309 $PAGES[noNS($SITE)][noNS($SITE)] = $INSERTDATA;
313 $PAGES[noNS($SITE)] = $INSERTDATA;
319 if (!is_array($PAGES[$NS])) $PAGES[$NS] = empty($PAGES[$NS]) ? array() : array($PAGES[$NS]);
320 $this->__buildTopicTree($PAGES[$NS], $DATA, $SITE, $INSERTDATA);