PHP Class common\Uri

Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat string The urlised string.

getUrl() public static méthode

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.
Résultat string The urlised string.