__construct() public méthode

Sets the User Agent and runs the compilation routine
public __construct ( ) : void
Résultat 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());
     }
 }
 public function __construct()
 {
     parent::__construct();
 }
Exemple #4
0
 function __construct()
 {
     parent::__construct();
     $this->CI =& get_instance();
     //$this->CI调用框架方法
 }