public function __construct() { if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') { $this->_linkPrefix = 'http://' . $_SERVER['HTTP_HOST']; $this->_protocol = 'https://'; } else { $this->_protocol = 'http://'; } }