PHP constructor protected
(2012-09-16 15:47:26)
the purpose of a private or protected constructor is toprevent the class from being instantiated from outside of theclass.
构造函数前的 private 或者 protected,目的是防止类在类之外实例化。
You could create a public static function in the class thatreturns a new object, but you cannot create it directly if you wantto have the constructor be protected or private. You must havesomething declared as public or you cannot use the class.