Class HttpUserAgent

Summary

Fully Qualified Name: Zend\Session\Validator\HttpUserAgent
Implements: ValidatorInterface

Description

Methods

Name Description Defined By
__construct() Constructor get the current user agent and store it in the session as 'valid data' HttpUserAgent
getData() Retrieve token for validating call HttpUserAgent
getName() Return validator name HttpUserAgent
isValid() isValid() - this method will determine if the current user agent matches the user agent we stored when we initialized this variable. HttpUserAgent

Method Details

__construct()

Constructor get the current user agent and store it in the session as 'valid data'

Parameter Name Type Description
$data string|null

Returns:

getData()

Retrieve token for validating call

Returns: string

getName()

Return validator name

Returns: string

isValid()

isValid() - this method will determine if the current user agent matches the user agent we stored when we initialized this variable.

Returns: bool

Top