|
@@ -6,7 +6,34 @@
|
|
|
* Time: 下午10:35
|
|
|
*/
|
|
|
|
|
|
+namespace fcode;
|
|
|
+
|
|
|
+
|
|
|
class manager
|
|
|
{
|
|
|
+ public static $stInstance;
|
|
|
+
|
|
|
+ private function __construct()
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ static public function instance()
|
|
|
+ {
|
|
|
+ if(self::$stInstance == null) {
|
|
|
+ self::$stInstance = new manager();
|
|
|
+ }
|
|
|
+
|
|
|
+ if(StatesHelper::fetch_state('fcode')) {
|
|
|
+ Log::record("fcode reinit data.",Log::DEBUG);
|
|
|
+ self::$stInstance->init();
|
|
|
+ }
|
|
|
+
|
|
|
+ return self::$stInstance;
|
|
|
+ }
|
|
|
+
|
|
|
+ private function init()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|