Jump to:

23371 Posts in 18161 Topics by 2865 members

General Questions

SilverStripe Forums » General Questions » When is Object::extend(...) useful or required?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 338 Views
  • vwd
    Avatar
    Community Member
    158 Posts

    When is Object::extend(...) useful or required? Link to this post

    Hi,

    I'm trying to get my head around Object::extend(...)...

    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.
    VWD.

    What

  • vwd
    Avatar
    Community Member
    158 Posts

    Re: When is Object::extend(...) useful or required? Link to this post

    This question was partially answered in this thread.

    338 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.