~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Entity/Session.php

  • Committer: Dan Garner
  • Date: 2015-09-29 15:16:59 UTC
  • mto: (454.2.11) (471.2.2)
  • mto: This revision was merged to the branch mainline in revision 468.
  • Revision ID: git-v1:ae24387a7b1397750b6ec86d0f286373da05eb16
Fixed Display Version Information Form (not showing media name)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
 
9
9
namespace Xibo\Entity;
10
 
use Xibo\Service\LogServiceInterface;
11
 
use Xibo\Storage\StorageServiceInterface;
12
10
 
13
11
/**
14
12
 * Class Session
15
13
 * @package Xibo\Entity
16
14
 */
17
 
class Session implements \JsonSerializable
 
15
class Session
18
16
{
19
17
    use EntityTrait;
20
18
 
21
 
    public $sessionId;
22
19
    public $userId;
23
20
    public $userName;
24
21
    public $isExpired;
 
22
    public $lastPage;
25
23
    public $lastAccessed;
26
24
    public $remoteAddress;
27
25
    public $userAgent;
28
 
    public $expiresAt;
29
 
 
30
 
    /**
31
 
     * Entity constructor.
32
 
     * @param StorageServiceInterface $store
33
 
     * @param LogServiceInterface $log
34
 
     */
35
 
    public function __construct($store, $log)
36
 
    {
37
 
        $this->setCommonDependencies($store, $log);
38
 
    }
39
26
 
40
27
    public function getId()
41
28
    {