[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Trait for issuing warnings on deprecated access. Adapted from https://github.com/wikimedia/mediawiki/blob/4aedefdbfd193f323097354bf581de1c93f02715/includes/debug/DeprecationHelper.php
File Size: | 134 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
deprecatePublicProperty($property,$class = null) X-Ref |
Mark a property as deprecated. Only use this for properties that used to be public and only call it in the constructor. see: DebugHelper::dbgDeprecatedProperty param: string $property The name of the property. param: null $class name of the class defining the property |
__get($name) X-Ref |
No description |
__set($name, $value) X-Ref |
No description |
deprecationHelperGetPropertyOwner($property) X-Ref |
Like property_exists but also check for non-visible private properties and returns which class in the inheritance chain declared the property. param: string $property return: string|bool Best guess for the class in which the property is defined. |