Utility

JUtility is a utility functions class

since

1.7.0

Methods

getMaxUploadSize

Method to get the maximum allowed file size for the HTTP uploads based on the active PHP configuration

getMaxUploadSize(mixed $custom = null) : integer
static
since

3.7.0

Arguments

$custom

mixedA custom upper limit, if the PHP settings are all above this then this will be used

Response

integerSize in number of bytes

parseAttributes

Method to extract key/value pairs out of a string with XML style attributes

parseAttributes(string $string) : array
static
since

1.7.0

Arguments

$string

stringString containing XML style attributes

Response

arrayKey/Value pairs for the attributes