23 parent::__construct($settings, $rights);
28 $elementActions = parent::prepareActions();
36 return $elementActions;
41 $controls = parent::prepareControls($rawFields);
43 $isSection = isset($rawFields[
'ROW_TYPE']) && $rawFields[
'ROW_TYPE'] ===
'S';
46 $id = (int)($rawFields[
'ID'] ?? 0);
49 $additionalItems = [];
51 $productType = (int)($rawFields[
'TYPE'] ?? $this->getProductType($id) ?? 0);
61 foreach ($additionalItems as $item)
66 $control = isset($item) ? $item->getControl($rawFields) :
null;
69 $controls[] = $control;
78 private function getProductType(
int $productId): ?int
90 return (
int)$row[
'TYPE'];
getActionById(string $id)
static getRow(array $parameters)