Method | Description | |
---|---|---|
__construct ( ) | Constructor that initializes the requirements. |
Method | Description | |
---|---|---|
checkWritable ( $path ) | Checks if a path is writable. If not, generates a requirement. | |
getBytesIniSetting ( $setting ) : integer | Returns a php.ini setting with parsed byte values. | |
isWritableRecursive ( string $dir ) : boolean | Checks if the given directory and all contained files within it is writable by the current user. | |
returnBytes ( $val ) : integer | string | Parses a value with g,m or k modifiers and returns the effective bytes. |
protected checkWritable ( $path ) | ||
$path | string The path to check |
protected getBytesIniSetting ( $setting ) : integer | ||
$setting | string The php.ini setting | |
return | integer | The byts |
protected isWritableRecursive ( string $dir ) : boolean | ||
$dir | string | The directory to check |
return | boolean | True if the path is writable |
protected returnBytes ( $val ) : integer | string | ||
$val | string The value to parse | |
return | integer | string | The bytes |