Changing static:: to self:: for PHP 5.2 compatibility.