PHP Class Mysql, php_design_patterns

显示文件 Open project: yunkaiyueming/php_design_patterns Class Usage Examples

Public Methods

Method Description
__clone ( ) 防止对象被复制
getInstance ( ) 创建一个用来实例化对象的方法

Private Methods

Method Description
__construct ( ) 构造函数为private,防止创建对象

Method Details

__clone() public method

防止对象被复制
public __clone ( )

getInstance() public static method

创建一个用来实例化对象的方法
public static getInstance ( )