Skip to content

Commit f65b8c6

Browse files
committed
Vesta session class
1 parent f651c68 commit f65b8c6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
class VestaSession
4+
{
5+
6+
static public $instance = null;
7+
8+
/**
9+
* Grab current instance or create it
10+
*
11+
* @return AjaxHandler
12+
*/
13+
static function getInstance()
14+
{
15+
return null == self::$instance ? self::$instance = new self() : self::$instance;
16+
}
17+
18+
public function getUser()
19+
{
20+
return array('uid' => 'vesta');
21+
}
22+
23+
}
24+
25+
?>

0 commit comments

Comments
 (0)