/** * Static instance provider * * Method providing static instance of CRM_Utils_VersionCheck, * as in Singleton pattern * * @return CRM_Utils_VersionCheck */ static function &singleton() { if (!isset(self::$_singleton)) { self::$_singleton = new CRM_Utils_VersionCheck(); } return self::$_singleton; }