public static function getInstance() { if (is_null(self::$helper)) { $classname = __CLASS__; self::$helper = new $classname(); } return self::$helper; }