Changed "self" calls to "static" ones.

This isn’t php5.2 anymore, and this will make extending the class
easier.