[TASK] Reapply direct changes of TYPO3 Core
[Packages/TYPO3.CMS.git] / typo3 / sysext / version / ws / class.wslib_gui.php
index 3d2d018..aa1947c 100644 (file)
@@ -42,7 +42,7 @@
  *   84: class wslib_gui
  *
  *              SECTION: Public functions
- *  128:     function getWorkspaceOverview(&$doc, $wsid = null, $filter = 0, $pageId = -1)
+ *  128:     function getWorkspaceOverview(&$doc, $wsid = NULL, $filter = 0, $pageId = -1)
  *  192:     function hlSubelements(origId, verId, over, diffLayer)
  *
  *              SECTION: Private functions (do not use outside of this class!)
@@ -90,9 +90,9 @@ class wslib_gui {
        var $pageTreeIndent_titleLgd = 30;
 
        // Options
-       var     $diff = false;
-       var     $expandSubElements = false;
-       var     $alwaysDisplayHeader = false;
+       var     $diff = FALSE;
+       var     $expandSubElements = FALSE;
+       var     $alwaysDisplayHeader = FALSE;
 
        // Internal
        var     $showWorkspaceCol = 0;
@@ -103,7 +103,7 @@ class wslib_gui {
        var     $pageModule = '';
        var $formatCount_cache = array();
        var $stageIndex = array();
-       var     $addHlSubelementsScript = false;
+       var     $addHlSubelementsScript = FALSE;
 
        /*********************************
         *
@@ -121,12 +121,12 @@ class wslib_gui {
         * or click-menu will not be generated properly!
         *
         * @param       object          $doc    Document (to use for formatting)
-        * @param       int             $wsid   Workspace ID, If <code>null</code>, the value is obtained from current BE user
+        * @param       int             $wsid   Workspace ID, If <code>NULL</code>, the value is obtained from current BE user
         * @param       int             $filter If 0, than no filtering, if 10 than select for publishing, otherwise stage value
         * @param       int             $pageId If greater than zero, than it is UID of page in LIVE workspaces to select records for
         * @return      string          Generated HTML
         */
-       function getWorkspaceOverview(&$doc, $wsid = null, $filter = 0, $pageId = -1) {
+       function getWorkspaceOverview(&$doc, $wsid = NULL, $filter = 0, $pageId = -1) {
                global  $LANG;
 
                // Setup
@@ -461,12 +461,12 @@ class wslib_gui {
                                                                                case 'page':
                                                                                        $swapLabel = ' ['.$LANG->getLL('label_page').']';
                                                                                        $swapClass = 'ver-page';        // Do not translate!
-                                                                                       $warnAboutVersions_page = !$this->showWorkspaceCol;             // This value is true only if multiple workspaces are shown and we need the opposite here.
+                                                                                       $warnAboutVersions_page = !$this->showWorkspaceCol;             // This value is TRUE only if multiple workspaces are shown and we need the opposite here.
                                                                                        break;
                                                                                case 'branch':
                                                                                        $swapLabel = ' ['.$LANG->getLL('label_branch').']';
                                                                                        $swapClass = 'ver-branch';      // Do not translate!
-                                                                                       $warnAboutVersions_next = !$this->showWorkspaceCol;             // This value is true only if multiple workspaces are shown and we need the opposite here.
+                                                                                       $warnAboutVersions_next = !$this->showWorkspaceCol;             // This value is TRUE only if multiple workspaces are shown and we need the opposite here.
                                                                                        break;
                                                                        }
 
@@ -999,7 +999,7 @@ class wslib_gui {
                                        $uid,
                                        $rec,
                                        $origId,
-                                       $c==$elCount && $treeLevel==0 ? 1 : 0,          // If true, will show bottom-join icon.
+                                       $c==$elCount && $treeLevel==0 ? 1 : 0,          // If TRUE, will show bottom-join icon.
                                        ''
                                );
                        }
@@ -1046,7 +1046,7 @@ class wslib_gui {
                                                        $uid,
                                                        $rec,
                                                        $origId,
-                                                       $c==$elCount?1:0,       // If true, will show bottom-join icon.
+                                                       $c==$elCount?1:0,       // If TRUE, will show bottom-join icon.
                                                        $data['HTML_depthData']
                                                );
                                        }
@@ -1114,7 +1114,7 @@ class wslib_gui {
                                if ($this->targets['orig_'.$origId.'_'.$tN.'_'.$rec[$origUidFields]])   {       // If there IS a corresponding original record...:
 
                                        // Prepare Table row parameters:
-                                       $this->addHlSubelementsScript = true;
+                                       $this->addHlSubelementsScript = TRUE;
                                        $tdParams =  ' onmouseover="hlSubelements(\''.$origId.'_'.$tN.'_'.$rec[$origUidFields].'\', \''.$uid.'_'.$tN.'_'.$rec[$origUidFields].'\', 1, '.($this->diff==2?1:0).');"'.
                                                ' onmouseout="hlSubelements(\''.$origId.'_'.$tN.'_'.$rec[$origUidFields].'\', \''.$uid.'_'.$tN.'_'.$rec[$origUidFields].'\', 0, '.($this->diff==2?1:0).');"'.
                                                ' id="ver_'.$uid.'_'.$tN.'_'.$rec[$origUidFields].'" class="typo3-ver"';