常用方法
常用方法
常用方法
常用方法
/** * Singleton pattern */ public static function get_instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Singleton pattern */ public static function get_instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }