摘要: self points to the class in which it is written. So, if your getInstance method is in a class name MyClass, the following line : self::$_instance = new self(); Will do the same as : self::$_instance = new MyClass(); Edit : a couple more informations,after the comments. If you have two classes that e 阅读全文
posted @ 2013-12-31 15:16 doop-ymc 阅读(390) 评论(0) 推荐(0) 编辑