Commit 392b04e2 authored by Tomita Militaru's avatar Tomita Militaru Committed by Christian Kuhn
Browse files

[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's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 5e95e561
==================================================================
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
......@@ -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}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment