JURI/isSSL: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 27: | Line 27: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=isSSL | category=isSSL | ||
category=JURI | category=JURI | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:14, 25 March 2017
Description
Checks whether the current URI is using HTTPS.
Syntax
isSSL()
Returns
boolean True if using SSL via HTTPS.
Defined in
libraries/joomla/environment/uri.php
Importing
jimport( 'joomla.environment.uri' );
Source Body
public function isSSL()
{
return $this->getScheme() == 'https' ? true : false;
}
Examples
Code Examples