Bitrix API

Request extends ParameterDictionary

AbstractYes

Class Request contains current request

Table of Contents

Methods

__construct()  : mixed
Creates object.
__unserialize()  : void
addFilter()  : mixed
clear()  : mixed
get()  : string|array<string|int, mixed>|null
Returns any variable by its name. Null if variable is not set.
getPhpSelf()  : mixed
getRaw()  : string|null
Returns original value of any variable by its name. Null if variable is not set.
getRequestedPage()  : mixed
getRequestedPageDirectory()  : string
Retuns the current directory with a trailing slash (/).
getScriptName()  : mixed
getServer()  : Server
getValues()  : array<string|int, mixed>
isAdminSection()  : mixed
isAjaxRequest()  : bool
Returns true if current request is AJAX
isEmpty()  : bool
Returns true if the dictionary is empty.
jsonSerialize()  : array<string|int, mixed>
JsonSerializable::jsonSerialize — Specify data which should be serialized to JSON
offsetSet()  : mixed
Offset to set
offsetUnset()  : void
Offset to unset
set()  : mixed
setValues()  : mixed
toArray()  : array<string|int, mixed>
Returns the values as an array.
toArrayRaw()  : mixed

Methods

__construct()

Creates object.

public __construct(Server $server, array<string|int, mixed> $request) : mixed
Parameters
$server : Server
$request : array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

get()

Returns any variable by its name. Null if variable is not set.

public get(string $name) : string|array<string|int, mixed>|null
Parameters
$name : string
Return values
string|array<string|int, mixed>|null

getPhpSelf()

public getPhpSelf() : mixed

getRaw()

Returns original value of any variable by its name. Null if variable is not set.

public getRaw(string $name) : string|null
Parameters
$name : string
Return values
string|null

getRequestedPage()

public getRequestedPage() : mixed

getRequestedPageDirectory()

Retuns the current directory with a trailing slash (/).

public getRequestedPageDirectory() : string
Return values
string

getScriptName()

public getScriptName() : mixed

getValues()

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

isAdminSection()

public isAdminSection() : mixed

isAjaxRequest()

Returns true if current request is AJAX

public isAjaxRequest() : bool
Return values
bool

isEmpty()

Returns true if the dictionary is empty.

public isEmpty() : bool
Return values
bool

jsonSerialize()

JsonSerializable::jsonSerialize — Specify data which should be serialized to JSON

public jsonSerialize() : array<string|int, mixed>
Attributes
#[ReturnTypeWillChange]
Return values
array<string|int, mixed>

offsetSet()

Offset to set

public offsetSet(mixed $offset, mixed $value) : mixed
Parameters
$offset : mixed
$value : mixed

offsetUnset()

Offset to unset

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

set()

public set(mixed $name[, mixed $value = null ]) : mixed
Parameters
$name : mixed
$value : mixed = null

toArray()

Returns the values as an array.

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

        
On this page

Search results