[TYPO3-project-4-3] logging deprecated class properties
Martin Kutschker
masi-no at spam-typo3.org
Mon Nov 9 23:20:35 CET 2009
Hi!
I've played a bit with magic getters and setters to provide a way to log access to deprecated
properties.
See attached patch for the logging function (in t3lib_div) and sample (iin tslib_fe).
The idea is to make a deprecated property "private" and then use magic setters and getters to access
them from the outside (incl. child classes). The magic setters/getters are only wrappers and do
nothing besides relaying the access and logging.
Masi
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log-deprecated-properties.diff
URL: <http://lists.typo3.org/pipermail/typo3-project-4-3/attachments/20091109/2c32a523/attachment.asc>
More information about the TYPO3-project-4-3
mailing list