Documentation

Core_Request
in package

Incoming Http Request helper.

Вспомогательный класс для работы с данными и заголовками входящего http-запроса

Tags
subpackage

Core

author

James V. Kotov

copyright

2014

version
1.0a
access

public commercial

required

HostCMS v6.1.1+

Table of Contents

Properties

$instance  : mixed
The singleton instances.
$_rawPost  : mixed
Кеш raw data
$_requestHeaders  : mixed
Кеш заголовков запроса

Methods

getRawPost()  : string
Core_Request::getRawPost() Возвращает raw post data из пришедшего запроса
getRequestHeader()  : string|null
Core_Request::getRequestHeader() Возвращает значение требуемого заголовка от пришедшего запроса или null, если требуемый заголовок не был передан
getRequestHeaders()  : array<string|int, mixed>
Core_Request::getRequestHeaders() Возвращает массив с заголовками пришедшего запроса
instance()  : object
Register an existing instance as a singleton.

Properties

$instance

The singleton instances.

public static mixed $instance = \NULL

$_rawPost

Кеш raw data

protected mixed $_rawPost = \NULL

$_requestHeaders

Кеш заголовков запроса

protected mixed $_requestHeaders = \NULL

Methods

getRawPost()

Core_Request::getRawPost() Возвращает raw post data из пришедшего запроса

public getRawPost() : string
Return values
string

getRequestHeader()

Core_Request::getRequestHeader() Возвращает значение требуемого заголовка от пришедшего запроса или null, если требуемый заголовок не был передан

public getRequestHeader(string $sHeaderName) : string|null
Parameters
$sHeaderName : string
Return values
string|null

getRequestHeaders()

Core_Request::getRequestHeaders() Возвращает массив с заголовками пришедшего запроса

public getRequestHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

instance()

Register an existing instance as a singleton.

public static instance() : object
Return values
object

        
On this page

Search results