Lines Matching refs:item

227 		/* Utility function to check is a given page/namespace ($item) is excluded
230 * is based on item title, full id or name ($exclutype).
232 function _isExcluded ($item, $exclutype, $arrayRegex) {
235 if ((strlen($conf['hidepages']) != 0) && preg_match('/'.$conf['hidepages'].'/i', $item['id'])) return true;
239 $match = preg_match('/'.$regex['regex'].(($exclutype=='title')?'/':'/i'), $item[$exclutype]);
371 $item = array('id' => $id, 'rel_id' => $rel_id, 'name' => $name, 'title' => NULL);
384 if ($this->_isExcluded($item, $data['exclutype'], $data['excluns'])) continue;
387 $item['metadata'] = $this->_getMetadata($index_id, $index_filepath);
388 if ($data['nsuseheading'] && isset($item['metadata']['title']))
389 $item['title'] = $item['metadata']['title'];
391 if (is_null($item['title']))
392 $item['title'] = $name;
393 $item['linkdisp'] = ($index_exists && ($data['nsLinks']==CATLIST_NSLINK_AUTO)) || ($data['nsLinks']==CATLIST_NSLINK_FORCE);
394 $item['linkid'] = $index_id;
396 $item['buttonid'] = $data['createPageButtonSubs'] ? $id.':' : NULL;
398 $item['_'] = array();
400 $exclude_content = $this->_isExcluded($item, $data['exclutype'], $data['exclunsall'])
403 $exclunspages = $this->_isExcluded($item, $data['exclutype'], $data['exclunspages']);
404 $exclunsns = $this->_isExcluded($item, $data['exclutype'], $data['exclunsns']);
405 $this->_walk_recurse($data, $path.'/'.$file, $id, $rel_id, $exclunspages, $exclunsns, $depth+1, $item['_']);
408 $_TREE[] = $item;
415 $item['metadata'] = $this->_getMetadata($id, $file);
416 if ($data['useheading'] && isset($item['metadata']['title'])) {
417 $item['title'] = $item['metadata']['title'];
419 if (is_null($item['title']))
420 $item['title'] = $name;
422 if ($this->_isExcluded($item, $data['exclutype'], $data['exclupage'])) continue;
424 $_TREE[] = $item;
527 foreach ($_TREE as $item) {
528 if (isset($item['_'])) {
529 $perms = $this->_cached_quickaclcheck($item['id'].':*');
530 if ($perms >= AUTH_READ || $this->_any_child_perms($data, $item['_']))
533 $perms = $this->_cached_quickaclcheck($item['id']);
542 foreach ($_TREE as $item) {
543 if (isset($item['_'])) {
545 $perms = $this->_cached_quickaclcheck($item['id'].':*');
550 if ($data['show_leading_ns'] && $this->_any_child_perms($data, $item['_'])) {
558 $linkdisp = $item['linkdisp'] && ($perms >= AUTH_READ);
560 $item['buttonid'] = NULL;
561 $this->_displayNSBegin($renderer, $data, $item['title'], $linkdisp, $item['linkid'], ($data['show_perms'] ? $perms : NULL));
563 $this->_recurse($renderer, $data, $item['_']);
564 $this->_displayNSEnd($renderer, $data['displayType'], $item['buttonid']);
567 $perms = $this->_cached_quickaclcheck($item['id']);
570 if ($data['hide_index'] && in_array($item['id'], $data['index_pages']))
573 $this->_displayPage($renderer, $item, $data['displayType'], ($data['show_perms'] ? $perms : NULL), $displayLink);
603 function _displayPage (&$renderer, $item, $displayType, $perms, $displayLink) {
606 if ($displayLink) $renderer->internallink(':'.$item['id'], $item['title']);
607 else $renderer->doc .= htmlspecialchars($item['title']);
611 $renderer->internallink(':'.$item['id'], $item['title']);