ServerHelper
class ServerHelper (View source)
The ServerHelper class.
Methods
Access a value in an array, returning a default value if not found
Recursively validate the structure in an uploaded files array.
A proxy to getallheaders().
A proxy to apacherequestheaders().
parseFormData
setByPath
Details
at line line 31
static mixed
getValue(array $servers, string $name, mixed $default = null)
Access a value in an array, returning a default value if not found
Will also do a case-insensitive search if a case sensitive search fails.
at line line 50
static boolean
validateUploadedFiles(array $files)
Recursively validate the structure in an uploaded files array.
Every file should be an UploadedFileInterface object.
at line line 77
static array|false
getAllHeaders()
A proxy to getallheaders().
If this function not available, we will use native code to implement this function.
at line line 106
static array
apacheRequestHeaders()
A proxy to apacherequestheaders().
If this function not available, we will use native code to implement this function.
at line line 141
static array
parseFormData(string $input)
parseFormData
at line line 241
static boolean
setByPath(array $data, string $path, mixed $value, string $separator = '.')
setByPath