Bitrix API

Select extends Field

Table of Contents

Methods

__construct()  : mixed
Class constructor.
getName()  : string
Creates select name in correct format.
getOptions()  : array<string|int, mixed>
Get options as array
isEmptyValue()  : bool
Gets true, if current value is empty.
isMulti()  : bool
Multiple or not current field.
viewForm()  : void
Vew field.

Methods

__construct()

Class constructor.

public __construct(string $code[, array<string|int, mixed> $params = array() ]) : mixed
Parameters
$code : string

Field code.

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

Field params.

getName()

Creates select name in correct format.

public getName(mixed $nameFormat) : string
Parameters
$nameFormat : mixed
Return values
string

$nameFormat Formatted name.

getOptions()

Get options as array

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

isEmptyValue()

Gets true, if current value is empty.

public isEmptyValue() : bool
Return values
bool

isMulti()

Multiple or not current field.

public isMulti() : bool
Return values
bool

viewForm()

Vew field.

public viewForm([array<string|int, mixed> $params = array() ]) : void
Parameters
$params : array<string|int, mixed> = array()

Array params: name - field name class - css-class for this element additional - some additional params as is.


        
On this page

Search results