Stud.IP  4.2 Revision
Token Class Reference
Collaboration diagram for Token:
Collaboration graph

Public Member Functions

 __construct ($user_id, $duration_validity=30)
 
 get_token ()
 
 get_string ()
 
 __toString ()
 
 save ()
 
 calculate_expiration_time ($duration_validity=30)
 

Static Public Member Functions

static generate_token ()
 
static generate ($user_id, $duration_validity=30)
 
static remove_expired ()
 
static remove ($token)
 
static time_expired ($expiration)
 
static is_valid ($token)
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $user_id,
  $duration_validity = 30 
)
Here is the call graph for this function:

Member Function Documentation

◆ __toString()

__toString ( )

◆ calculate_expiration_time()

calculate_expiration_time (   $duration_validity = 30)
Here is the caller graph for this function:

◆ generate()

static generate (   $user_id,
  $duration_validity = 30 
)
static

◆ generate_token()

static generate_token ( )
static

◆ get_string()

get_string ( )
Here is the call graph for this function:

◆ get_token()

get_token ( )
Here is the caller graph for this function:

◆ is_valid()

static is_valid (   $token)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove()

static remove (   $token)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_expired()

static remove_expired ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ save()

save ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ time_expired()

static time_expired (   $expiration)
static
Here is the caller graph for this function:

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