-
iframe map test
March 26th, 2013 9:32 am -
New Searching Announcement
March 9th, 2013 4:47 pmThe first problem with your original is making your methods private. Private methods are only in scope for current class (in this case B::test()), however, the method is called from A::__callStatic() and so is out of scope.
The second issue is use of self:: although I can't offer an adequate explanation why I'm afraid (perhaps someone more versed in the nuances might shed some light?), but replacing self with the
static
keyword works.This works too
class A {publicstaticfunction __callStatic($method, $params){return call_user_func_array('static::'.$method, $params);}}class B extends A {protectedstaticfunction test($value){ echo $value;}} B::test('foo');
-
Last Test
November 25th, 2012 9:26 pmHere is modifying an announcement
-
2013 Dues notices in the mail
November 25th, 2012 5:04 pmzxccjkal cjachjajsdhajch j
-
2013 Dues notices in the mail
November 25th, 2012 3:02 pm2013 Dues are due January 1st.