I'm trying to get my head around [url=http://api.silverstripe.org/2.4/sapphire/core/Object.html#methodextend]Object::extend(...)[/url]...
Please tell me if I understand what it does correctly:
- Goes through all of the current object's extensions
- Checks if a method of the same name as parameter $method exists,
- And if so, calls the method with the parameters $a1-$a7
When would I need to use Object::extend? Are the situations when it is useful or even necessary? Any code examples that show its usefulness?
Thanks very much.