Utility

JUtility is a utility functions class

since

1.7.0

package

Joomla CMS

Methods

getMaxUploadSize

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

getMaxUploadSize( custom = null) : 
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

mixedSize in number of bytes

parseAttributes

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

parseAttributes( string) : mixed||string|int
static
since

1.7.0

Arguments

string

stringString containing XML style attributes

Response

array<string|int, mixed>Key/Value pairs for the attributes