FWSystem
in package
FWSystem This class provides system related methods.
Tags
Table of Contents
Methods
- detectUtf8() : bool
- Checks if the given string contains utf8 characters
- getBytesOfLiteralSizeFormat() : int
- Return the literal size $literalSize in bytes.
- getLiteralSizeFormat() : string
- Return the literal size of $bytes with the appropriate suffix (bytes, KB, MB, GB)
- getMaxUploadFileSize() : string
- Returns the maximum file size in bytes that is allowed to upload
Methods
detectUtf8()
Checks if the given string contains utf8 characters
public
static detectUtf8(string $string) : bool
Parameters
- $string : string
Return values
bool —false (no match) or true (match)
getBytesOfLiteralSizeFormat()
Return the literal size $literalSize in bytes.
public
static getBytesOfLiteralSizeFormat(string $literalSize) : int
Parameters
- $literalSize : string
Return values
intgetLiteralSizeFormat()
Return the literal size of $bytes with the appropriate suffix (bytes, KB, MB, GB)
public
static getLiteralSizeFormat(int $bytes) : string
Parameters
- $bytes : int
Return values
stringgetMaxUploadFileSize()
Returns the maximum file size in bytes that is allowed to upload
public
static getMaxUploadFileSize() : string
Return values
string —filesize