Feature #76008

Add property visibility to DebuggerUtility::var_dump

Added by Nicola Heisch over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2016-05-02
Due date:
% Done:

100%

PHP Version:
Tags:
extbase var_dump debug DebuggerUtility
Complexity:
Sprint Focus:

Description

It would be great if the method \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump would show the visibility of object properties.

I've added a screenshot of how it could look.

Screen Shot 2016-05-02 at 11.36.52.png View (175 KB) Nicola Heisch, 2016-05-02 11:39


Related issues

Related to TYPO3 Core - Bug #76301: Output of DebuggerUtility contains HTML even if not requested Closed 2016-05-25

Associated revisions

Revision 392b04e2 (diff)
Added by Tomita Militaru over 3 years ago

[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 <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

Revision b228ae8c (diff)
Added by Helmut Hummel over 3 years ago

[BUGFIX] Output HTML code only if requested

When adding visibility information in DebuggerUtility
it was not respected that this utility can also be used to output in cli.

Add the missing condition and output HTML only if requested.

Additionally when the property has nested objects,
the visibility info must be right after the property not after
every nested object.

Also prettify object type output on command line on the go.

Resolves: #76301
Related: #76008
Releases: master
Change-Id: If82192bf9d1fb0ca1dc843242167d01b1a915f6e
Reviewed-on: https://review.typo3.org/48287
Reviewed-by: Elmar Hinz <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Wouter Wolters <>
Reviewed-by: Markus Klein <>
Tested-by: Elmar Hinz <>
Reviewed-by: Nicole Cordes <>
Tested-by: Nicole Cordes <>

History

#1 Updated by Nicola Heisch over 3 years ago

The Visibility could be checked in \TYPO3\CMS\Extbase\Utility\DebuggerUtility::renderContent and then passed to the other methods until the headers are rendered.

$visibility = ($property->isProtected() ? 'protected' : ($property->isPrivate() ? 'private' : 'public'));

#2 Updated by Wouter Wolters over 3 years ago

  • Target version deleted (7.6.5)

Features won't be included in stable releases.

#3 Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48087

#4 Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48087

#5 Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48087

#6 Updated by Tomita Militaru over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#7 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF