CMS  Version 3.9
PHPSession Class Reference

Inherits DataItem.

Public Member Functions

 PHPSession ()
 

Static Public Member Functions

static read ($id)
 

Public Attributes

 $fields
 
 $relations = array()
 

Detailed Description

Definition at line 39 of file php_session.inc.

Member Function Documentation

◆ PHPSession()

PHPSession::PHPSession ( )

Definition at line 64 of file php_session.inc.

65  {
66  $this->table = "php_session";
67  $this->primary_key = "session_id";
68 
69  $this->DataItem(func_get_args());
70  }

◆ read()

static PHPSession::read (   $id)
static

Definition at line 49 of file php_session.inc.

50  {
51  try
52  {
53  return Query::create(PHPSession, "WHERE id=:id")
54  ->bind(":id", $id)
55  ->executeSingle();
56  }
57  catch(DataNotFoundException $e)
58  {
59  }
60 
61  return null;
62  }

Member Data Documentation

◆ $fields

PHPSession::$fields
Initial value:
= array("session_id" => Number,
"id" => String,
"data" => Text,
"expires" => Number)

Definition at line 42 of file php_session.inc.

◆ $relations

PHPSession::$relations = array()

Definition at line 47 of file php_session.inc.


The documentation for this class was generated from the following file: