Documentation

FWSystem
in package

FWSystem This class provides system related methods.

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Cloudrexx Development Team info@cloudrexx.com

version
1.0.0
subpackage

lib_framework

todo

Edit PHP DocBlocks!

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
int

getLiteralSizeFormat()

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
string

getMaxUploadFileSize()

Returns the maximum file size in bytes that is allowed to upload

public static getMaxUploadFileSize() : string
Return values
string

filesize


        
On this page

Search results