Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
configurablemodel.php
1<?php
2
4
5use Bitrix\Report\VisualConstructor\BaseConfigField;
9
16abstract class ConfigurableModel extends Model
17{
18
20 protected $configurations = array();
21
25 public function getConfigurations()
26 {
28 }
29
37 {
38 $this->configurations = $configurations;
39 }
40
47 public function addConfigurationField(BaseValuable $field)
48 {
49 $configuration = new Configuration();
50 $configuration->setFieldClassName($field::getClassName());
51 $configuration->setKey($field->getKey());
52 $configuration->setGId(Util::generateUserUniqueId());
53 $configuration->setValue($field->getDefaultValue());
54 $configuration->setWeight(0);
55 $this->addConfigurations($configuration);
56 }
57}