API16

API16:JURI/isSSL

From Joomla! Documentation

Revision as of 02:14, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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