PHP coding standard: using self::method() vs $this->method()
Posted: Tue Mar 02, 2010 6:17 pm
If a class method() is not static, and even though it works calling it with self::method(), I want to know if this is totally uncool and does not meet to PHP coding standards?
To meet to PHP coding standards (PEAR), then must I restrict myself to:
Thanks
Jeff in Seattle
To meet to PHP coding standards (PEAR), then must I restrict myself to:
- Use only $this-> when referring to non-static class methods and member variables
- Use only self:: when referring to static methods and constants
Thanks
Jeff in Seattle