Lizmap Web Client Master

tools
in package

Some generic methods.

Tags
author

3liz

copyright

2011 3liz

see
http://3liz.com
license

Mozilla Public License : http://www.mozilla.org/MPL/

Table of Contents

Methods

displayFileSize()  : string
Human readable file size.
stringSimplify()  : string
Replace accentuated letters and delete special characters.
unaccent()  : string
Replace accentuated letters.

Methods

displayFileSize()

Human readable file size.

public displayFileSize(string $fichier) : string

Replace octets with appropriate value. Ex : 1024 -> 1 Mo.

Parameters
$fichier : string

File from which to display the size

Return values
string

$taille Formated file size

stringSimplify()

Replace accentuated letters and delete special characters.

public stringSimplify(string $string, bool $accent, bool $speciaux, mixed $underscore, mixed $majuscule) : string
Parameters
$string : string

String passed

$accent : bool

Replace capital letters ?

$speciaux : bool

Replace special chars with underscores ?

$underscore : mixed
$majuscule : mixed
Return values
string

unaccent()

Replace accentuated letters.

public unaccent(string $string) : string
Parameters
$string : string

String passed

Return values
string

        
On this page

Search results