CMS  Version 3.9
AuthenticationToken Class Reference

Inherits DataItem.

Public Member Functions

 User ()
 
 AuthenticationToken ()
 

Public Attributes

 $fields
 
 $relations = array("User" => "")
 

Detailed Description

Definition at line 39 of file authentication_token.inc.

Member Function Documentation

◆ AuthenticationToken()

AuthenticationToken::AuthenticationToken ( )

Definition at line 60 of file authentication_token.inc.

61  {
62  $this->primary_key = "authentication_token_id";
63  $this->table = "authentication_token";
64 
65  // Patch in the user class, since this can be overridden by the application
66  $mgr = new UserManager();
67  $this->relations["User"] = $mgr->getUserClass();
68 
69  $this->DataItem(func_get_args());
70  }
Provides the interface to the user model for the application.

◆ User()

AuthenticationToken::User ( )

Definition at line 54 of file authentication_token.inc.

55  {
56  $mgr = new UserManager();
57  return $mgr->getUser($this->user_id);
58  }
$feedback user_id
Definition: save.inc:14

Member Data Documentation

◆ $fields

AuthenticationToken::$fields
Initial value:
= array("authentication_token_id" => Number,
"token" => String,
"user_id" => Number,
"ip_address" => String,
"enabled" => Boolean,
"single_use" => Boolean,
"last_access" => Timestamp,
"redirect_on_success" => String)

Definition at line 42 of file authentication_token.inc.

◆ $relations

AuthenticationToken::$relations = array("User" => "")

Definition at line 52 of file authentication_token.inc.


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