public function user if is_null self _user self _user new capplication

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
public function user()
{
if(is_null(self::$_user))
{
self::$_user = new capplication;
self::$_user->initialise('auth', 'site/auth');
}
return self::$_user;
}