ServerBag
class ServerBag extends ParameterBag
ServerBag is a container for HTTP headers from the $_SERVER variable.
Properties
protected | $parameters | Parameter storage. | from ParameterBag |
Methods
replace(array $parameters = array())
Replaces the current parameters by a new set.
from ParameterBag
string
getAlpha(string $key, string $default = '')
Returns the alphabetic characters of the parameter value.
from ParameterBag
string
getAlnum(string $key, string $default = '')
Returns the alphabetic characters and digits of the parameter value.
from ParameterBag
string
getDigits(string $key, string $default = '')
Returns the digits of the parameter value.
from ParameterBag
int
getInt(string $key, int $default = 0)
Returns the parameter value converted to integer.
from ParameterBag
bool
getBoolean(string $key, bool $default = false)
Returns the parameter value converted to boolean.
from ParameterBag
mixed
filter(string $key, mixed $default = null, int $filter = FILTER_DEFAULT, mixed $options = array())
Filter key.
from ParameterBag
array
getHeaders()
Gets the HTTP headers.
Details
string
getAlpha(string $key, string $default = '')
Returns the alphabetic characters of the parameter value.
string
getAlnum(string $key, string $default = '')
Returns the alphabetic characters and digits of the parameter value.
bool
getBoolean(string $key, bool $default = false)
Returns the parameter value converted to boolean.