CoolCMS API

UrlHelper
in package

Table of Contents

Methods

containsUrl()  : bool
replaceUrl()  : string
sanitizeUrl()  : string

Methods

containsUrl()

public static containsUrl(string $string) : bool
Parameters
$string : string
Return values
bool

replaceUrl()

public static replaceUrl(string $string[, string $replaceBy = '...' ]) : string
Parameters
$string : string
$replaceBy : string = '...'
Return values
string

sanitizeUrl()

public static sanitizeUrl(string $string[, bool $addProtocol = false ]) : string
Parameters
$string : string
$addProtocol : bool = false
Return values
string
On this page

Search results