Methods | ||
---|---|---|
public
static
|
init(): void
|
# |
public
static
|
is_cli(): bool
|
# |
public
static
|
is_cli_server(): bool
|
# |
public
static
|
script_name(): string
|
# |
public
static
|
method(): string
|
# |
public
static
|
is_method(string $value): bool
|
# |
public
static
|
ip(): string
|
# |
public
static
|
user_agent(): string
|
# |
public
static
|
referer(): string
|
# |
public
static
|
host(): string
|
# |
public
static
|
base_url(): string
|
# |
public
static
|
uri(string $mode = 'full'): string
|
# |
public
static
|
query_string(): string
|
# |
public
static
|
header(string $key, mixed $default = null): mixed
|
# |
public
static
|
has_header(string $key): bool
|
# |
public
static
|
get(string $key, mixed $default = null): mixed
|
# |
public
static
|
has_get(string $key): bool
|
# |
public
static
|
set_get(string $key, mixed $value): void
|
# |
public
static
|
post(string $key, mixed $default = null): mixed
|
# |
public
static
|
has_post(string $key): bool
|
# |
public
static
|
set_post(string $key, mixed $value): void
|
# |
public
static
|
cookie(string $key, mixed $default = null): mixed
|
# |
public
static
|
has_cookie(string $key): bool
|
# |
public
static
|
set_cookie(string $key, string $value): void
|
# |
public
static
|
session_start(string $prefix = 'sess_', int $ttl = 86400): void
|
# |
public
static
|
session(string $key, mixed $default = null): mixed
|
# |
public
static
|
has_session(string $key): bool
|
# |
public
static
|
set_session(string $key, mixed $value): void
|
# |
public
static
|
unset_session(string $key): void
|
# |
public
static
|
server(string $key, mixed $default = null): mixed
|
# |
public
static
|
has_server(string $key): bool
|
# |
public
static
|
file(string $key): ?array
|
# |
public
static
|
request(string $key, mixed $default = null): mixed
|
# |
public
static
|
has_request(string $key): bool
|
# |
public
static
|
has_payload(string $key): bool
|
# |
public
static
|
payload(string $key, mixed $default = null): mixed
|
# |
Properties | |||
---|---|---|---|
public
static
|
array
|
$file
|
# |
public
static
|
array
|
$header
|
# |
public
static
|
array
|
$server
|
# |
public
static
|
array
|
$payload
|
# |