mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-07-27 15:51:01 +02:00
Vesta session class
This commit is contained in:
25
web/vesta/core/VestaSession.class.php
Normal file
25
web/vesta/core/VestaSession.class.php
Normal file
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user