Bitrix API

InfoPopup implements Arrayable

Table of Contents

Interfaces

Arrayable

Methods

addLinkField()  : self
addMixedField()  : self
addMoneyField()  : mixed
addPhoneField()  : mixed
addTextField()  : self
createLinkBlock()  : array<string|int, mixed>
createMoneyBlock()  : array<string|int, mixed>
createPhoneBlock()  : array<string|int, mixed>
createTextBlock()  : array<string|int, mixed>
getIcon()  : string|null
getSubtitle()  : string|null
getTitle()  : string|null
setIcon()  : self
setSubtitle()  : self
setTitle()  : self
toArray()  : array<string|int, mixed>

Methods

addLinkField()

public addLinkField(string $title, string $text, mixed $href) : self
Parameters
$title : string
$text : string
$href : mixed
Return values
self

addMixedField()

public addMixedField(string $title, array<string|int, mixed> $blocks) : self
Parameters
$title : string
$blocks : array<string|int, mixed>
Return values
self

addMoneyField()

public addMoneyField(string $title, float $opportunity, string $currencyId) : mixed
Parameters
$title : string
$opportunity : float
$currencyId : string

addPhoneField()

public addPhoneField(string $title, string $text, string $phone, bool $canPerformCalls) : mixed
Parameters
$title : string
$text : string
$phone : string
$canPerformCalls : bool

addTextField()

public addTextField(string $title, string $text) : self
Parameters
$title : string
$text : string
Return values
self

createLinkBlock()

public createLinkBlock(mixed $text, mixed $href) : array<string|int, mixed>
Parameters
$text : mixed
$href : mixed
Return values
array<string|int, mixed>

createMoneyBlock()

public createMoneyBlock(float $opportunity, string $currencyId) : array<string|int, mixed>
Parameters
$opportunity : float
$currencyId : string
Return values
array<string|int, mixed>

createPhoneBlock()

public createPhoneBlock(string $text, string $phone, bool $canPerformCalls) : array<string|int, mixed>
Parameters
$text : string
$phone : string
$canPerformCalls : bool
Return values
array<string|int, mixed>

createTextBlock()

public createTextBlock(mixed $text) : array<string|int, mixed>
Parameters
$text : mixed
Return values
array<string|int, mixed>

getIcon()

public getIcon() : string|null
Return values
string|null

getSubtitle()

public getSubtitle() : string|null
Return values
string|null

getTitle()

public getTitle() : string|null
Return values
string|null

setIcon()

public setIcon(string $icon) : self
Parameters
$icon : string
Return values
self

setSubtitle()

public setSubtitle(string $subtitle) : self
Parameters
$subtitle : string
Return values
self

setTitle()

public setTitle(string $title) : self
Parameters
$title : string
Return values
self

toArray()

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

        
On this page

Search results