[TASK] Use external Core Project DBAL as Git submodule
[Packages/TYPO3.CMS.git] / typo3 / show_item.php
index 56bfd7c..4268987 100644 (file)
@@ -99,8 +99,13 @@ class transferData extends t3lib_transferData        {
                $config = $GLOBALS['TCA'][$table]['columns'][$field]['config'];
                switch($config['type']) {
                        case 'input':
-                               if (isset($config['checkbox']) && $content==$config['checkbox'])        {$content=''; break;}
-                               if (t3lib_div::inList($config['eval'],'date'))  {$content = Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'],$content); }
+                               if (isset($config['checkbox']) && $content == $config['checkbox']) {
+                                       $content = '';
+                                       break;
+                               }
+                               if (t3lib_div::inList($config['eval'],'date')) {
+                                       $content = Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], $content);
+                               }
                        break;
                        case 'group':
                        break;
@@ -136,7 +141,7 @@ class SC_show_item {
 
                // Internal, static:
        var $perms_clause;      // Page select clause
-       var $access;            // If true, access to element is granted
+       var $access;            // If TRUE, access to element is granted
        var $type;                      // Which type of element: "file" or "db"
        var $doc;                       // Document Template Object
 
@@ -162,7 +167,7 @@ class SC_show_item {
 
                        // Initialize:
                $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
-               $this->access = 0;      // Set to true if there is access to the record / file.
+               $this->access = 0;      // Set to TRUE if there is access to the record / file.
                $this->type = '';       // Sets the type, "db" or "file". If blank, nothing can be shown.
 
                        // Checking if the $table value is really a table and if the user has access to it.
@@ -224,14 +229,14 @@ class SC_show_item {
                        $returnLinkTag = $returnLink ? '<a href="' . $returnLink . '" class="typo3-goBack">' : '<a href="#" onclick="window.close();">';
 
                                // render type by user func
-                       $typeRendered = false;
+                       $typeRendered = FALSE;
                        if (is_array ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/show_item.php']['typeRendering'])) {
                                foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/show_item.php']['typeRendering'] as $classRef) {
                                        $typeRenderObj = t3lib_div::getUserObj($classRef);
                                        if(is_object($typeRenderObj) && method_exists($typeRenderObj, 'isValid') && method_exists($typeRenderObj, 'render'))    {
                                                if ($typeRenderObj->isValid($this->type, $this)) {
                                                        $this->content .=  $typeRenderObj->render($this->type, $this);
-                                                       $typeRendered = true;
+                                                       $typeRendered = TRUE;
                                                        break;
                                                }
                                        }
@@ -325,7 +330,7 @@ class SC_show_item {
                $imgObj->mayScaleUp = 0;
                $imgObj->absPrefix = PATH_site;
 
-                       // Read Image Dimensions (returns false if file was not an image type, otherwise dimensions in an array)
+                       // Read Image Dimensions (returns FALSE if file was not an image type, otherwise dimensions in an array)
                $imgInfo = '';
                $imgInfo = $imgObj->getImageDimensions($this->file);