Bitrix API

HttpCookies extends Dictionary

Table of Contents

Properties

$values  : array<string|int, Cookie>

Methods

__construct()  : mixed
Creates object.
__unserialize()  : void
addFromString()  : void
clear()  : mixed
get()  : string|array<string|int, mixed>|null
Returns any variable by its name. Null if variable is not set.
getValues()  : array<string|int, mixed>
implode()  : string
Implodes cookies to 'name=value' pairs with a '; ' separator (useful for 'Cookie' header).
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
set()  : mixed
setValues()  : mixed
toArray()  : array<string|int, mixed>
Returns the values as an array.

Properties

Methods

__construct()

Creates object.

public __construct([array<string|int, string>|array<string|int, Cookie>|null $values = null ]) : mixed
Parameters
$values : array<string|int, string>|array<string|int, Cookie>|null = null

__unserialize()

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

addFromString()

public addFromString(string $str) : void
Parameters
$str : string

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

getValues()

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

implode()

Implodes cookies to 'name=value' pairs with a '; ' separator (useful for 'Cookie' header).

public implode() : string
Return values
string

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()

public offsetSet(mixed $offset, mixed $value) : mixed
Parameters
$offset : mixed
$value : mixed
Attributes
#[ReturnTypeWillChange]

set()

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

setValues()

public setValues(mixed $values) : mixed
Parameters
$values : mixed

toArray()

Returns the values as an array.

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

        
On this page

Search results