+ /**
+ * @param array $pageInfo Array with uid, title, hidden, extendToSubpages from pages table
+ * @return boolean TRUE if rootline contains a hidden page, FALSE if not
+ */
+ public function getRootLineIsHidden(array $pageInfo) {
+ $hidden = FALSE;
+ if ($pageInfo['extendToSubpages'] == 1 && $pageInfo['hidden'] == 1) {
+ $hidden = TRUE;
+ } else {
+ if ($pageInfo['pid'] > 0) {
+ $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+ 'uid,title,hidden,extendToSubpages',
+ 'pages',
+ 'uid=' . $pageInfo['pid']
+ );
+
+ while (($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) !== FALSE) {
+ $hidden = $this->getRootLineIsHidden($row);
+ }
+ $GLOBALS['TYPO3_DB']->sql_free_result($res);
+ } else {
+ $hidden = FALSE;
+ }
+ }
+ return $hidden;