/** * Constructor * * @param array $config */ public function __construct(array $config) { parent::__construct($config); $contentType = isset($this->_config['content_type']) ? $this->_config['content_type'] : 'application/xhtml+xml'; $this->_config['agent_filter'] = true; $this->_config['header'] = 'Content-Type: ' . $contentType . '; charset=utf-8'; $this->_config['charset'] = 'utf-8'; $this->_config['role'] = array(BEAR_Agent::UA_SOFTBANK, BEAR_Agent::UA_MOBILE, BEAR_Agent::UA_DEFAULT); }
/** * Constructor * * @param array $config */ public function __construct(array $config) { parent::__construct($config); $contentType = isset($this->_config['content_type']) ? $this->_config['content_type'] : 'application/xhtml+xml'; $this->_config['agent_filter'] = true; $this->_config['input_encode'] = 'SJIS-win'; $this->_config['output_encode'] = 'SJIS-win'; $this->_config['header'] = 'Content-Type: ' . $contentType . '; charset=Shift_JIS'; $this->_config['charset'] = 'Shift_JIS'; $this->_config['role'] = array(BEAR_Agent::UA_EZWEB, BEAR_Agent::UA_MOBILE, BEAR_Agent::UA_DEFAULT); }
/** * Constructor * * @param array $config */ public function __construct(array $config) { parent::__construct($config); $contentType = isset($this->_config['content_type']) ? $this->_config['content_type'] : 'application/xhtml+xml'; $this->_config['agent_filter'] = true; $this->_config['input_encode'] = 'SJIS-win'; $this->_config['output_encode'] = 'SJIS-win'; $this->_config['header'] = 'Content-Type: ' . $contentType . '; charset=Shift_JIS'; $this->_config['charset'] = 'Shift_JIS'; $this->_config['session_trans_sid'] = true; $this->_config['enable_js'] = false; $this->_config['enable_css'] = true; $this->_config['enable_inline_css'] = false; /** @todo inline CSS */ $this->_config['role'] = array(BEAR_Agent::UA_DOCOMO, BEAR_Agent::UA_MOBILE, BEAR_Agent::UA_DEFAULT); }