PHP Class common\Uri

Mostra file Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
getFilename ( string $value ) : string Prepares a string for a filename so that it can be used in urls.
getUrl ( string $value ) : string Prepares a string so that it can be used in urls.

Method Details

getFilename() public static method

Prepares a string for a filename so that it can be used in urls.
Deprecation: use getUrl instead, it is strict enough to create valid filenames
public static getFilename ( string $value ) : string
$value string The value (without extension) that should be urlised.
return string The urlised string.

getUrl() public static method

Prepares a string so that it can be used in urls.
public static getUrl ( string $value ) : string
$value string The value that should be urlised.
return string The urlised string.