mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated "Extensions and DataExtensions" docs
Corrected a typo and add more information to hopefully clarify the text.
This commit is contained in:
parent
74f7606080
commit
61af8b00ab
@ -250,7 +250,7 @@ class MyMemberExtension extends DataExtension
|
|||||||
```
|
```
|
||||||
|
|
||||||
[notice]
|
[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`).
|
Please note that while you can read protected properties of the source object (using `$this->owner->protectedProperty`) you cannot call any of it's protected methods (So this `$this->owner->protectedMethod()` would not work). You also cannot access any of the source object's private properties or methods (So this would not work either `$this->owner->privateProperty`).
|
||||||
[/notice]
|
[/notice]
|
||||||
|
|
||||||
## Checking to see if an Object has an Extension
|
## Checking to see if an Object has an Extension
|
||||||
|
Loading…
Reference in New Issue
Block a user