protected static function getInstance() { if (self::$instance === NULL) { $class = __CLASS__; self::$instance = new $class(); } return self::$instance; }