replace 'static' keyword by 'self' to be compatible with php 5.2