SandboxAnnouncements

  • iframe map test

    March 26th, 2013 9:32 am
    Matt Dunn
  • New Searching Announcement

    March 9th, 2013 4:47 pm
    Amanda Dunn (16321 Nieman Rd)

    The 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 statickeyword 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 pm
    Amanda Dunn (16321 Nieman Rd)

    Here is modifying an announcement

  • 2013 Dues notices in the mail

    November 25th, 2012 5:04 pm
    Amanda Dunn (16321 Nieman Rd)

    zxccjkal cjachjajsdhajch j

  • 2013 Dues notices in the mail

    November 25th, 2012 3:02 pm
    Matt Dunn

    2013 Dues are due January 1st.



<< Newer1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9Older >>