From 392b04e2ddbcca6ad98b5a054d77159365291369 Mon Sep 17 00:00:00 2001 From: Tomita Militaru <militarutomita@gmail.com> Date: Wed, 11 May 2016 22:25:18 +0200 Subject: [PATCH] [FEATURE] Adds property visibility to DebuggerUtility::var_dump 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> --- ...-76008-PropertyVisibilityToDebuggerUtilityvar_dump.rst | 8 ++++++++ typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 typo3/sysext/core/Documentation/Changelog/master/Feature-76008-PropertyVisibilityToDebuggerUtilityvar_dump.rst 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 index 000000000000..a7fa2acc5950 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Feature-76008-PropertyVisibilityToDebuggerUtilityvar_dump.rst @@ -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 diff --git a/typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php b/typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php index bee8160b9dcd..79c85f8fd36c 100644 --- a/typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php +++ b/typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php @@ -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} -- GitLab