/** * Constructor * @access public */ public function __construct($userAgent = null, $httpReferer = null) { parent::__construct(); // if no userAgent is given on function call mark it as empty - if the userAgent is empty keep it empty // if the userAgent stays empty it can be used for robot detecting or devices with blank UA (usually bots) // HTTP Reffer is optional so mark it empty if there is no HTTP Reffer $this->_userAgent = !is_null($userAgent) ? $userAgent : ''; $this->_httpReferer = !is_null($httpReferer) ? $httpReferer : ''; }
/** * Constructor * @access public */ public function __construct() { parent::__construct(); }