JURI/isSSL: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Checks whether the current URI is using HTTPS.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>... |
m clean up |
||
| Line 2: | Line 2: | ||
Checks whether the current URI is using HTTPS. | Checks whether the current URI is using HTTPS. | ||
{{Description:JURI/isSSL}} | |||
{{subst:Description:JURI/isSSL}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 28: | Line 26: | ||
</source> | </source> | ||
{{subst:SeeAlso:JURI/isSSL}} | |||
{{SeeAlso:JURI/isSSL}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:34, 24 March 2017
Description
Checks whether the current URI is using HTTPS.
{{subst:Description:JURI/isSSL}}
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;
}
{{subst:SeeAlso:JURI/isSSL}}
Examples
<CodeExamplesForm />