Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ratio.php
1<?php
2
3
5
6
10
11final class Ratio extends Base
12{
13
14 public function getFields()
15 {
16 return [
17 'ID'=>[
18 'TYPE'=>DataType::TYPE_INT,
19 'ATTRIBUTES'=>[
20 Attributes::READONLY
21 ]
22 ],
23 'PRODUCT_ID'=>[
24 'TYPE'=>DataType::TYPE_INT,
25 'ATTRIBUTES'=>[
26 Attributes::REQUIRED
27 ]
28 ],
29 'RATIO'=>[
30 'TYPE'=>DataType::TYPE_FLOAT,
31 'ATTRIBUTES'=>[
32 Attributes::REQUIRED
33 ]
34 ],
35 'IS_DEFAULT'=>[
36 'TYPE'=>DataType::TYPE_CHAR,
37 ]
38 ];
39 }
40}