10 defined(
'JPATH_PLATFORM') or die;
11 jimport('joomla.environment.uri');
42 public function __construct(
JRegistry $options = null,
JUri $uri = null)
44 $this->options = $options ? $options :
new JRegistry;
45 $this->uri = $uri ? $uri :
new JUri;
55 public function isSecure()
57 return $this->uri->
getScheme() ==
'https';
67 abstract public function getHeader();
76 abstract public function getBody();
85 public function echoHeader()
87 echo $this->getHeader();
97 public function echoBody()
99 echo $this->getBody();
111 public function getOption($key)
113 return $this->options->get($key);
126 public function setOption($key, $value)
128 $this->options->set($key, $value);