Пример #1
0
 public static function getInstance()
 {
     if (isset(self::$oInstance) && self::$oInstance instanceof self) {
         return self::$oInstance;
     } else {
         self::$oInstance = new self();
         return self::$oInstance;
     }
 }