/** * GetInstance method used to access the object * @access public * @return */ public static function GetInstance() { if (!isset(self::$_instance)) { self::$_instance = new self(); $rootdir = dirname(dirname(dirname(dirname(__FILE__)))); $cmsms_cnf_file = cms_join_path($rootdir, 'config.php'); include $cmsms_cnf_file; $file = cms_join_path(dirname(dirname(__FILE__)), 'includes', 'fb_cnf.inc'); include $file; self::$_data = array_merge($config, $fbcfg); } return self::$_instance; }