__construct() public method

Sets the User Agent and runs the compilation routine
public __construct ( ) : void
return void
 public function __construct()
 {
     parent::__construct();
     if ($this->agent !== NULL && $this->_load_agent_file()) {
         $this->_compile_data();
     }
     $this->_set_tablet();
 }
 public function __construct()
 {
     parent::__construct();
     if (!defined('UA_IS_MOBILE')) {
         define('UA_IS_MOBILE', $this->is_mobile());
     }
     if (!defined('UA_IS_ROBOT')) {
         define('UA_IS_ROBOT', $this->is_robot());
     }
     if (!defined('UA_IS_REFERRAL')) {
         define('UA_IS_REFERRAL', $this->is_referral());
     }
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
 }
Example #4
0
 function __construct()
 {
     parent::__construct();
     $this->CI =& get_instance();
     //$this->CI调用框架方法
 }