Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webbasics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
webbasics
Commits
94398656
Commit
94398656
authored
Oct 08, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated some docs
parent
9bbdf37c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
session.php
session.php
+16
-1
No files found.
session.php
View file @
94398656
<?php
<?php
/*
/*
*
*
*
*
*
* @author Taddeus Kroes
* @author Taddeus Kroes
* @date 05-10-2012
* @date 05-10-2012
* @since 0.2
* @todo Documentation
*/
*/
namespace
webbasics
;
namespace
webbasics
;
require_once
'base.php'
;
require_once
'base.php'
;
/**
*
*
* @package WebBasics
*/
class
Session
implements
Singleton
{
class
Session
implements
Singleton
{
/**
* @see Singleton::$instance
*/
private
static
$instance
;
private
static
$instance
;
/**
* @see Singleton::getInstance()
*/
static
function
getInstance
()
{
static
function
getInstance
()
{
if
(
self
::
$instance
===
null
)
if
(
self
::
$instance
===
null
)
self
::
$instance
=
new
self
;
self
::
$instance
=
new
self
;
...
@@ -21,6 +34,8 @@ class Session implements Singleton {
...
@@ -21,6 +34,8 @@ class Session implements Singleton {
}
}
/**
/**
* Constructor, starts a new session.
*
* @codeCoverageIgnore
* @codeCoverageIgnore
*/
*/
private
function
__construct
()
{
private
function
__construct
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment