Malishev Dmitry 14 лет назад
Родитель
Сommit
f65b8c618b
1 измененных файлов с 25 добавлено и 0 удалено
  1. 25 0
      web/vesta/core/VestaSession.class.php

+ 25 - 0
web/vesta/core/VestaSession.class.php

@@ -0,0 +1,25 @@
+<?php
+
+class VestaSession
+{
+    
+    static public $instance = null;
+    
+    /**
+     * Grab current instance or create it
+     *
+     * @return AjaxHandler
+     */
+    static function getInstance() 
+    {
+        return null == self::$instance ? self::$instance = new self() : self::$instance;
+    }
+     
+    public function getUser()
+    {
+        return array('uid' => 'vesta');
+    }
+    
+}
+
+?>