mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Vesta session class
This commit is contained in:
parent
f651c68a6a
commit
f65b8c618b
1 changed files with 25 additions and 0 deletions
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');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue