API16

JURI/isSSL: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JURI/isSSL|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JURI/isSSL}}
 
{{subst:Description:JURI/isSSL}}


===Syntax===
===Syntax===
Line 28: Line 26:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JURI/isSSL|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JURI/isSSL}}
</span>
{{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 />