| [ 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: | 133 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. param: string $property The name of the property. param: null $class name of the class defining the property see: DebugHelper::dbgDeprecatedProperty |
| __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. return: string|bool Best guess for the class in which the property is defined. param: string $property |