Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
configurablemodel.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor\Entity
;
4
5
use Bitrix\Report\VisualConstructor\BaseConfigField;
6
use
Bitrix\Report\VisualConstructor\Fields\Valuable\BaseValuable
;
7
use
Bitrix\Report\VisualConstructor\Helper\Util
;
8
use
Bitrix\Report\VisualConstructor\Internal\Model
;
9
16
abstract
class
ConfigurableModel
extends
Model
17
{
18
20
protected
$configurations
= array();
21
25
public
function
getConfigurations
()
26
{
27
return
$this->configurations
;
28
}
29
36
public
function
setConfigurations
(
$configurations
)
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
}
Bitrix\Report\VisualConstructor\Entity\ConfigurableModel
Definition
configurablemodel.php:17
Bitrix\Report\VisualConstructor\Entity\ConfigurableModel\$configurations
$configurations
Definition
configurablemodel.php:20
Bitrix\Report\VisualConstructor\Entity\ConfigurableModel\getConfigurations
getConfigurations()
Definition
configurablemodel.php:25
Bitrix\Report\VisualConstructor\Entity\ConfigurableModel\addConfigurationField
addConfigurationField(BaseValuable $field)
Definition
configurablemodel.php:47
Bitrix\Report\VisualConstructor\Entity\ConfigurableModel\setConfigurations
setConfigurations($configurations)
Definition
configurablemodel.php:36
Bitrix\Report\VisualConstructor\Entity\Configuration
Definition
configuration.php:15
Bitrix\Report\VisualConstructor\Fields\Base\getKey
getKey()
Definition
base.php:384
Bitrix\Report\VisualConstructor\Fields\Valuable\BaseValuable
Definition
basevaluable.php:11
Bitrix\Report\VisualConstructor\Fields\Valuable\BaseValuable\getDefaultValue
getDefaultValue()
Definition
basevaluable.php:29
Bitrix\Report\VisualConstructor\Helper\Util
Definition
util.php:9
Bitrix\Report\VisualConstructor\Internal\Model
Definition
model.php:18
Bitrix\Report\VisualConstructor\Entity
Definition
configurablemodel.php:3
modules
report
lib
visualconstructor
entity
configurablemodel.php
Создано системой
1.10.0