Lines Matching refs:elem

85         foreach ( $nData as $elem )
88 $anchor = ( !empty($elem['anchor']) ? '#' . $elem['anchor'] : '' );
89 …$elem['url'] = $this->functions->getSiteName($elem['id'], true); // Override - we need a clean name
90 $elem['mapURL'] = $elem['url'];
91 $this->shortenByTranslation($elem['url']);
94 if ( in_array($elem['url'], $CHECKDATA) ) { continue; }
96 if ( !isset($elem['exists']) ) {
97 … $elem['exists'] = page_exists( (new PageResolver( $elem['id'] ))->resolveId($elem['id']) );
98 $this->functions->debug->message("EXISTS previously not set.", $elem, 1);
102 …$elem['mapID'] = intval($elem['exists']) == 1 ? $this->functions->getMapID($elem['id'], $elem['anc…
103 …$elem['tags'] = explode(' ', p_get_metadata($elem['id'], 'context tags', true)); // thats from the…
104 $elem['tags'] = array_filter($elem['tags'], array($this, 'isNotEmpty'));
105 $elem['tags'] = array_map(array($this->functions, 'cleanId'), $elem['tags']);
107 if ( empty($elem['depth']) ) {
108 $elem['depth'] = count(explode('/', $elem['url']));
110 $CHECKDATA[] = $elem['url'];
114 $startPageID = $elem['mapID'][0];
117 if ( empty( $elem['name'] ) || $elem['name'] == noNs($elem['id']) ) {
118 $elem['name'] = $this->functions->getSiteTitle($elem['id']);
120 if ( is_array($elem['mapID']) && empty( $elem['mapID'] ) ) {
121 array_push($elem['mapID'], noNs($elem['id']));
124 $this->debug("no name, get site title " . $elem['name']);
125 $this->debug($elem);
129 …$this->shortenByTranslation($elem['mapURL'], true); // true to already remove all language stuff -…
130 foreach ( $elem['mapID'] as $VIEWID ) {
131 … $MAPXML .= "\n\t<mapID target=\"" . $VIEWID . "\" url=\"" . $elem['mapURL'] . $anchor . "\"/>";
134 $elem['tocNS'] = getNS(cleanID($elem['url']));
135 $elem['tocNS'] = $this->shortenByTranslation($elem['tocNS'], true);
136 $elem['tocNS'] = strlen($elem['tocNS']) > 0 ? explode('/', $elem['tocNS']) : array();
137 $this->functions->debug->message("This will be the TOC elements data:", $elem, 1);
139 $this->__buildTOCTree($DATA, $elem['tocNS'], $elem);
267 foreach ($DATA as $elem) {
269 $site = $elem['id'];
373 foreach ($DATA as $elem)
375 $ID = $elem['id'];
382 $VIEWIDs = $this->functions->getMapID($elem['id'], $elem['anchor'], $check);