class Utility

JUtility is a utility functions class

Methods

static  array
parseAttributes( string $string)

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

static  integer
getMaxUploadSize( mixed $custom = null)

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

Details

static array parseAttributes( string $string)

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

Parameters

string $string String containing XML style attributes

Return Value

array Key/Value pairs for the attributes

static integer getMaxUploadSize( mixed $custom = null)

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

Parameters

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

Return Value

integer Size in number of bytes