[TASK] Remove XCLASS definitions from typo3/
[Packages/TYPO3.CMS.git] / typo3 / class.webpagetree.php
index 3bae237..3742c36 100644 (file)
@@ -72,14 +72,14 @@ class webPageTree extends t3lib_browseTree {
        var $ext_IconMode;
        var $ext_separateNotinmenuPages;
        var $ext_alphasortNotinmenuPages;
-       var $ajaxStatus = false; // Indicates, whether the ajax call was successful, i.e. the requested page has been found
+       var $ajaxStatus = FALSE; // Indicates, whether the ajax call was successful, i.e. the requested page has been found
 
        /**
         * Calls init functions
         *
         * @return      void
         */
-       function webPageTree() {
+       function __construct() {
                $this->init();
        }
 
@@ -163,10 +163,7 @@ class webPageTree extends t3lib_browseTree {
                }
 
                $aOnClick = 'return jumpTo(\''.$this->getJumpToParam($row).'\',this,\''.$this->domIdPrefix.$this->getId($row).'\','.$bank.');';
-               $CSM = '';
-               if ($GLOBALS['TYPO3_CONF_VARS']['BE']['useOnContextMenuHandler'])       {
-                       $CSM = ' oncontextmenu="'.htmlspecialchars($GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon('','pages',$row['uid'],0,'&bank='.$this->bank,'',TRUE)).';"';
-               }
+               $CSM = ' oncontextmenu="'.htmlspecialchars($GLOBALS['TBE_TEMPLATE']->wrapClickMenuOnIcon('','pages',$row['uid'],0,'&bank='.$this->bank,'',TRUE)).';"';
                $thePageTitle='<a href="#" onclick="'.htmlspecialchars($aOnClick).'"'.$CSM.'>'.$title.'</a>';
 
                        // Wrap title in a drag/drop span.
@@ -194,7 +191,7 @@ class webPageTree extends t3lib_browseTree {
                        // -- evaluate AJAX request
                        // IE takes anchor as parameter
                $PM = t3lib_div::_GP('PM');
-               if(($PMpos = strpos($PM, '#')) !== false) { $PM = substr($PM, 0, $PMpos); }
+               if(($PMpos = strpos($PM, '#')) !== FALSE) { $PM = substr($PM, 0, $PMpos); }
                $PM = explode('_', $PM);
                if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) && is_array($PM) && count($PM) == 4 && $PM[2] != 0) {
                        if($PM[1])      {
@@ -422,9 +419,8 @@ class webPageTree extends t3lib_browseTree {
                        $crazyRecursionLimiter--;
 
                                // Not in menu:
-                               // @TODO: RFC #7370: doktype 2&5 are deprecated since TYPO3 4.2-beta1
                        if ($this->ext_separateNotinmenuPages &&
-                               ($row['doktype'] == t3lib_pageSelect::DOKTYPE_HIDE_IN_MENU || $row['doktype'] == t3lib_pageSelect::DOKTYPE_BE_USER_SECTION ||
+                               ($row['doktype'] == t3lib_pageSelect::DOKTYPE_BE_USER_SECTION ||
                                        $row['doktype'] >= 200 || $row['nav_hide'])) {
                                $outOfMenuPages[] = $row;
                                $outOfMenuPagesTextIndex[] = ($row['doktype']>=200 ? 'zzz'.$row['doktype'].'_' : '').$row['title'];
@@ -502,7 +498,7 @@ class webPageTree extends t3lib_browseTree {
                                'HTML'   => $HTML,
                                'hasSub' => $nextCount&&$this->expandNext($newID),
                                'isFirst'=> $a==1,
-                               'isLast' => false,
+                               'isLast' => FALSE,
                                'invertedDepth'=> $depth,
                                'blankLineCode'=> $blankLineCode,
                                'bank' => $this->bank
@@ -516,9 +512,4 @@ class webPageTree extends t3lib_browseTree {
                return $c;
        }
 }
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/class.webpagetree.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/class.webpagetree.php']);
-}
-
 ?>
\ No newline at end of file