Example #1
0
 /**
  * Делает возможным только один экземпляр этого класса
  *
  * @return Router
  */
 public static function getInstance()
 {
     if (isset(self::$oInstance) and self::$oInstance instanceof self) {
         return self::$oInstance;
     } else {
         self::$oInstance = new self();
         return self::$oInstance;
     }
 }