URL class

access public
package kocuj_sitemap

 Methods

Get singleton instance

getInstance() : object
Static
access public

Returns

objectSingleton instance

Get this website root URL without protocol "http" or "https"

getRootUrlWithoutProtocol() : string
access public

Returns

stringThis website root URL without protocol

Remove protocol "http" or "https" from local URL

removeProtocolLocal(string $url) : string
access public

Parameters

$url

string

URL

Returns

stringURL without protocol

Disable cloning of object

__clone() : void
access private

Constructor

__construct() : void
access private

 Properties

 

Singleton instance

$instance : object

Default

NULL
Static
access private
 

Root URL without protocol

$rootUrlWithoutProtocol : string

Default

''
access private