/** * Singleton function used to manage this object. * * @return CRM_Core_Session */ public static function &singleton() { if (self::$_singleton === NULL) { self::$_singleton = new CRM_Core_Session(); } return self::$_singleton; }