Identifies the platform, browser, robot, or mobile devise of the browsing agent
저자: EllisLab Dev Team
예제 #1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->agent !== NULL && $this->_load_agent_file()) {
         $this->_compile_data();
     }
     $this->_set_tablet();
 }
예제 #2
0
 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());
     }
 }
예제 #3
0
 function MY_User_agent()
 {
     parent::CI_User_agent();
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
 }
예제 #5
0
 function __construct()
 {
     parent::__construct();
     $this->CI =& get_instance();
     //$this->CI调用框架方法
 }