mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated "Extensions and DataExtensions" Docs
Added a notice to the "Owner" section that will remind developers of the limitations of the owner system when it comes to private and protected properties and methods
This commit is contained in:
parent
6229d014e0
commit
74f7606080
@ -249,6 +249,10 @@ class MyMemberExtension extends DataExtension
|
||||
}
|
||||
```
|
||||
|
||||
[notice]
|
||||
Please note that while you can read protected properties (using `$this->owner->protectedProperty`) you cannot not call protected methods (`$this->owner->protectedMethod()`). You also cannot access any private properties or methods (So this would not work either `$this->owner->privateProperty`).
|
||||
[/notice]
|
||||
|
||||
## Checking to see if an Object has an Extension
|
||||
|
||||
To see what extensions are currently enabled on an object, use the [getExtensionInstances()](api:SilverStripe\Core\Extensible::getExtensionInstances()) and
|
||||
|
Loading…
Reference in New Issue
Block a user