/**
  * Checks if a page is OK to include in the final menu item array. Pages can be excluded if the doktype is wrong, if they are hidden in navigation, have a uid in the list of banned uids etc.
  *
  * @param	array		Array of menu items
  * @param	array		Array of page uids which are to be excluded
  * @param	boolean		If set, then the page is a spacer.
  * @return	boolean		Returns true if the page can be safely included.
  */
 function filterMenuPages(&$data, $banUidArray, $spacer)
 {
     if ($data['_NOTVISIBLE']) {
         return false;
     } else {
         return parent::filterMenuPages($data, $banUidArray, $spacer);
     }
 }
 /**
  * Checks if a page is OK to include in the final menu item array. Pages can be excluded if the doktype is wrong, if they are hidden in navigation, have a uid in the list of banned uids etc.
  *
  * @param	array		Array of menu items
  * @param	array		Array of page uids which are to be excluded
  * @param	boolean		If set, then the page is a spacer.
  * @return	boolean		Returns true if the page can be safely included.
  */
 function filterMenuPages(&$data, $banUidArray, $spacer)
 {
     $includePage = TRUE;
     if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/tslib/class.tslib_menu.php']['filterMenuPages'])) {
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/tslib/class.tslib_menu.php']['filterMenuPages'] as $classRef) {
             $hookObject = t3lib_div::getUserObj($classRef);
             if (!$hookObject instanceof tslib_menu_filterMenuPagesHook) {
                 throw new UnexpectedValueException('$hookObject must implement interface tslib_menu_filterMenuPagesHook', 1251476766);
             }
             $includePage = $includePage && $hookObject->tslib_menu_filterMenuPagesHook($data, $banUidArray, $spacer, $this);
         }
     }
     if (!$includePage) {
         return false;
     } else {
         return parent::filterMenuPages($data, $banUidArray, $spacer);
     }
 }