Example #1
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     $contentType = isset($this->_config['content_type']) ? $this->_config['content_type'] : 'text/html';
     $this->_config['agent_filter'] = true;
     $this->_config['header'] = 'Content-Type: ' . $contentType . '; charset=utf-8';
     $this->_config['charset'] = 'utf-8';
     $this->_config['enable_js'] = true;
     $this->_config['role'] = array(BEAR_Agent::UA_IPHONE, BEAR_Agent::UA_DEFAULT);
 }
Example #2
0
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     $this->_config['role'] = array(BEAR_Agent::UA_DEFAULT);
     $this->_config['agent_filter'] = true;
     $this->_config['charset'] = 'utf-8';
     $this->_config['enable_js'] = true;
     $this->_config['enable_inline_css'] = false;
     $this->_config['enable_css'] = true;
     $this->_config['enable_session'] = true;
     $this->_config['session_trans_sid'] = false;
 }