-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c96b22
commit 50922a2
Showing
11 changed files
with
91 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
namespace Wcms; | ||
|
||
class Servicesession | ||
{ | ||
public function setvisitor(bool $visitor): void | ||
{ | ||
$_SESSION['visitor'] = $visitor; | ||
} | ||
|
||
public function getvisitor(): bool | ||
{ | ||
return $_SESSION['visitor']; | ||
} | ||
|
||
public function setuser(string $userid): void | ||
{ | ||
$_SESSION['user'] = $userid; | ||
} | ||
|
||
public function getuser(): ?string | ||
{ | ||
return $_SESSION['user']; | ||
} | ||
|
||
public function setwsessionid(string $wsessionid): void | ||
{ | ||
$_SESSION['wsession'] = $wsessionid; | ||
} | ||
|
||
public function getwsessionid(): string | ||
{ | ||
return $_SESSION['wsession'] ?? ''; | ||
} | ||
|
||
public function setopt(array $opt): void | ||
{ | ||
$_SESSION['opt'] = $opt; | ||
} | ||
|
||
public function getopt(): array | ||
{ | ||
return $_SESSION['opt'] ?? []; | ||
} | ||
|
||
public function setworkspace(Workspace $workspace): void | ||
{ | ||
$_SESSION['workspace'] = $workspace->dry(); | ||
} | ||
|
||
public function getworkspace(): Workspace | ||
{ | ||
$datas = $_SESSION['workspace'] ?? []; | ||
return new Workspace($datas); | ||
} | ||
|
||
/** | ||
* Empty current user session | ||
*/ | ||
public function empty(): void | ||
{ | ||
$_SESSION = []; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters