Bitrix API

ChannelManager

Class ChannelManager

Table of Contents

Methods

canUse()  : bool
Return true if channel can be used.
getByType()  : iProvider|null
Get channel by type.
getChannelArray()  : array<string|int, mixed>|null
Get channel as array.
getPresets()  : array<string|int, mixed>
Get presets.
getTypeNames()  : array<string|int, mixed>
Get type names.
getTypes()  : array<string|int, mixed>
Get types.
getWidgets()  : array<string|int, mixed>
Get widgets.

Methods

canUse()

Return true if channel can be used.

public static canUse(string $type) : bool
Parameters
$type : string

Type

Return values
bool

getChannelArray()

Get channel as array.

public static getChannelArray(string $type) : array<string|int, mixed>|null
Parameters
$type : string

Type

Return values
array<string|int, mixed>|null

getPresets()

Get presets.

public static getPresets(string $type) : array<string|int, mixed>
Parameters
$type : string

Type

Return values
array<string|int, mixed>

getTypeNames()

Get type names.

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

getTypes()

Get types.

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

getWidgets()

Get widgets.

public static getWidgets(string $type, string $id[, bool $removeCopyright = true ][, string|null $lang = null ][, array<string|int, mixed> $config = array() ]) : array<string|int, mixed>
Parameters
$type : string

Type

$id : string

Channel id

$removeCopyright : bool = true

Remove copyright

$lang : string|null = null

Language ID

$config : array<string|int, mixed> = array()

Config

Return values
array<string|int, mixed>

        
On this page

Search results