Lines Matching refs:DATA
68 public function __getJavaHelpTOCXML($DATA) {
70 if (count($DATA) == 0) {
80 $nData = $DATA;
81 $DATA = array();
142 $this->__buildTOCTree($DATA, $elem['tocNS'], $elem);
146 $TOCXML .= $this->__writeTOCTree($DATA) . "\n</toc>";
150 $this->debug($DATA);
160 private function __buildTOCTree(&$DATA, $currentNSArray, $elemToAdd)
169 $DATA[$key] = $elemToAdd;
174 $nextLevel = &$DATA[$currentLevel];
178 $nextLevel = &$DATA[$currentLevel]['pages'];
265 public function __getTOCXML($DATA, $XML = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<?NLS TYPE=\"org.eclipse.help.toc\"?>\n") {
270 foreach ($DATA as $elem) {
291 private function __buildTopicTree(&$PAGES, $DATA, $SITE, $INSERTDATA = null) {
293 if (empty($DATA) || !is_array($DATA)) {
321 $NS = array_shift($DATA);
323 $this->__buildTopicTree($PAGES[$NS], $DATA, $SITE, $INSERTDATA);
331 private function __addXMLTopic($DATA, $ITEM = 'topic', $LEVEL = 0, $NODENAME = '') {
336 if (!is_array($DATA)) {
337 return $DEPTH . '<' . $ITEM . ' label="' . $this->functions->getSiteTitle($DATA) . '" ' . ($ITEM != 'topic' ? 'topic' : 'href') . '="' . $this->functions->getSiteName($DATA) . "\" />\n";
340 list($indexTitle, $indexFile) = $this->__getIndexItem($DATA, $NODENAME);
345 $isEmptyNode = count($DATA) == 1 && empty($indexFile);
347 if (!$isEmptyNode && ($this->emptyNSToc || count($DATA) > 0)) {
353 if (!$isEmptyNode && count($DATA) > 0) $XML .= "\n";
355 foreach ($DATA as $NODENAME => $NS) {
356 $XML .= $this->__addXMLTopic($NS, (!($this->emptyNSToc || count($DATA) > 1) && $ITEM != 'topic' ? $ITEM : 'topic'), $LEVEL+(!$isEmptyNode ? 1 : 0), $NODENAME);
359 if (!$isEmptyNode && count($DATA) > 0) $XML .= "$DEPTH";
360 if (!$isEmptyNode && ($this->emptyNSToc || count($DATA) > 0)) {
371 public function __getContextXML($DATA) {
376 foreach ($DATA as $elem)
422 private function __getIndexItem(&$DATA, $NODENAME = '') {
425 if (!is_array($DATA)) { return; }
429 foreach ($DATA as $NODE => $indexSearch) {
438 unset($DATA[$NODE]);
442 if (empty($indexFile) && !empty($DATA[$NODENAME])) {
443 $indexTitle = $this->functions->getSiteTitle($DATA[$NODENAME]);
444 $indexFile = $DATA[$NODENAME];
445 unset($DATA[$NODENAME]);