/** * 单例模式 */ public static function getInstance() { if (empty(self::$_instance)) { $obj = new self(); self::$_instance = $obj->getXlogger(); } return self::$_instance; }