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 0000000000000000000000000000000000000000..a7fa2acc5950a66a3b19bffd743ebad4805ca28c --- /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 bee8160b9dcdceaa8f51100c8c7125176638e168..79c85f8fd36c2871d94d9605befab799471234d6 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}