Replaced static:: by self:: for PHP 5.2 compatibility