/** * 实例化本程序 * @param $args = func_get_args(); * @return object of this class */ public static function getInstance($shell = false) { if (!isset(self::$_instance)) { self::$_instance = new self($shell); } return self::$_instance; }