[FEATURE] Adds property visibility to DebuggerUtility::var_dump 87/48087/4
authorTomita Militaru <militarutomita@gmail.com>
Wed, 11 May 2016 20:25:18 +0000 (22:25 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 May 2016 13:45:32 +0000 (15:45 +0200)
Adds property visibility information to DebuggerUtility::var_dump
after each property in the dump.

Resolves: #76008
Releases: master
Change-Id: I196bfd45dbd70a52fa4cf29ec1ed24bbcdef2aee
Reviewed-on: https://review.typo3.org/48087
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Documentation/Changelog/master/Feature-76008-PropertyVisibilityToDebuggerUtilityvar_dump.rst [new file with mode: 0644]
typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-76008-PropertyVisibilityToDebuggerUtilityvar_dump.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-76008-PropertyVisibilityToDebuggerUtilityvar_dump.rst
new file mode 100644 (file)
index 0000000..a7fa2ac
--- /dev/null
@@ -0,0 +1,8 @@
+==================================================================
+Feature: #76008 - Property visibility to DebuggerUtility::var_dump
+==================================================================
+
+Description
+===========
+
+The property visibility information has been added to DebuggerUtility::var_dump for each object property in the dump.
\ No newline at end of file
index bee8160..79c85f8 100644 (file)
@@ -343,6 +343,8 @@ class DebuggerUtility
                         $dump .= '<span class="extbase-debug-dirty">modified</span>';
                     }
                 }
+                $visibility = ($property->isProtected() ? 'protected' : ($property->isPrivate() ? 'private' : 'public'));
+                $dump .= '<span class="extbase-debug-visibility">' . $visibility . '</span>';
             }
         }
         return $dump;
@@ -435,9 +437,10 @@ class DebuggerUtility
                                        .extbase-debugger-center .extbase-debug-string{color:#ce9178;white-space:normal}
                                        .extbase-debugger-center .extbase-debug-type{color:#569CD6;padding-right:4px}
                                        .extbase-debugger-center .extbase-debug-unregistered{background-color:#dce1e8}
-                                       .extbase-debugger-center .extbase-debug-filtered,.extbase-debugger-center .extbase-debug-proxy,.extbase-debugger-center .extbase-debug-ptype,.extbase-debugger-center .extbase-debug-scope{color:#fff;font-size:10px;line-height:12px;padding:2px 4px;margin-right:2px;position:relative;top:-1px}
+                                       .extbase-debugger-center .extbase-debug-filtered,.extbase-debugger-center .extbase-debug-proxy,.extbase-debugger-center .extbase-debug-ptype,.extbase-debugger-center .extbase-debug-visibility,.extbase-debugger-center .extbase-debug-scope{color:#fff;font-size:10px;line-height:12px;padding:2px 4px;margin-right:2px;position:relative;top:-1px}
                                        .extbase-debugger-center .extbase-debug-scope{background-color:#497AA2}
                                        .extbase-debugger-center .extbase-debug-ptype{background-color:#698747}
+                                       .extbase-debugger-center .extbase-debug-visibility{background-color:#698747}
                                        .extbase-debugger-center .extbase-debug-dirty{background-color:#FFFFB6}
                                        .extbase-debugger-center .extbase-debug-filtered{background-color:#4F4F4F}
                                        .extbase-debugger-center .extbase-debug-seeabove{text-decoration:none;font-style:italic}