Explorar o código

Vesta session class

Malishev Dmitry %!s(int64=14) %!d(string=hai) anos
pai
achega
f65b8c618b
Modificáronse 1 ficheiros con 25 adicións e 0 borrados
  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');
+    }
+    
+}
+
+?>