public function __construct()
{
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$this->agent = trim($_SERVER['HTTP_USER_AGENT']);
}
if ($this->agent !== NULL && $this->_load_agent_file()) {
$this->_compile_data();
}
log_message('info', 'User Agent Class Initialized');
}