Jump to content

Question about __get, __set, __call?


Liquid Fire

Recommended Posts

Ok i have a question about these methods when it comes to shild classes.  I have class B that extands class a  Lets say i have declared __call if both class a and b.  Now when i call $b->GetList(); which is picked up by the __call method does that automatically get picked up by class b's __call?  is this the the same with __get and __set?  If i want to call the the parent's(class a) _call method i can just put parent::__call(); inside the child's class __call method, right?

Link to comment
https://forums.phpfreaks.com/topic/48295-question-about-__get-__set-__call/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.