Пример #1
0
 /**
  * Return the current object instance (Singleton)
  * @return object
  */
 public static function getInstance()
 {
     if (!is_object(self::$objInstance)) {
         self::$objInstance = new BackendUser();
     }
     return self::$objInstance;
 }