/** * Function to return singleton object * * @return object $_singleton * @access public * @static */ public static function &singleton() { if (self::$_singleton === NULL) { self::$_singleton = new CRM_Groupprotect_Config(); } return self::$_singleton; }