Bitrix API

NumberFieldAssembler extends FieldAssembler

Assembler of number fields.

Example of creation for an integer:

$assembler = new NumberFieldAssembler(false, ['ID', 'COUNT']);

Example of creation for an float:

$assembler = new NumberFieldAssembler(true, ['WEIGHT', 'AMOUNT']);

Example of creation for culture of current context:

$assembler = NumberFieldAssembler::createForContext(true, ['COUNT', 'AMOUNT']);
Tags
see
Context
see
Culture

Table of Contents

Methods

__construct()  : mixed
clone()  : FieldAssembler
Clone instance.
createForContext()  : self
Create assembler for culture of context.
getColumnIds()  : array<string|int, string>
prepareRows()  : array<string|int, mixed>
Preparation of all rows at once.

Methods

__construct()

public __construct(bool $isFloat, array<string|int, mixed> $columnIds[, Settings|null $settings = null ][, Culture|null $culture = null ]) : mixed
Parameters
$isFloat : bool
$columnIds : array<string|int, mixed>
$settings : Settings|null = null
$culture : Culture|null = null

clone()

Clone instance.

public clone(array<string|int, mixed> $columnIds) : FieldAssembler

Column ids is read-only, so to change them, you need to create a new object.

Parameters
$columnIds : array<string|int, mixed>
Return values
FieldAssembler

createForContext()

Create assembler for culture of context.

public static createForContext(bool $isFloat, array<string|int, mixed> $columnIds[, Settings|null $settings = null ][, Context|null $context = null ]) : self
Parameters
$isFloat : bool
$columnIds : array<string|int, mixed>
$settings : Settings|null = null
$context : Context|null = null

if is null - use is current context.

Return values
self

getColumnIds()

public final getColumnIds() : array<string|int, string>
Return values
array<string|int, string>

prepareRows()

Preparation of all rows at once.

public prepareRows(array<string|int, mixed> $rowList) : array<string|int, mixed>

If you need to process all rows at once, override this method. See also prepareRow method.

Parameters
$rowList : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results