Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
configuration.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor\Entity
;
4
5
use Bitrix\Report\VisualConstructor\BaseConfigField;
6
use
Bitrix\Report\VisualConstructor\Fields\Base
;
7
use
Bitrix\Report\VisualConstructor\Internal\ConfigurationSettingTable
;
8
use
Bitrix\Report\VisualConstructor\Internal\Model
;
9
14
class
Configuration
extends
Model
15
{
16
protected
$gId
;
17
protected
$weight
= 0;
18
protected
$value
;
19
protected
$fieldClassName
=
''
;
20
protected
$key
;
21
22
29
public
static
function
getMapAttributes
()
30
{
31
$attributes = parent::getMapAttributes();
32
$attributes[
'GID'
] =
'gId'
;
33
$attributes[
'UKEY'
] =
'key'
;
34
$attributes[
'SETTINGS'
] =
'value'
;
35
$attributes[
'CONFIGURATION_FIELD_CLASS'
] =
'fieldClassName'
;
36
$attributes[
'WEIGHT'
] =
'weight'
;
37
return
$attributes;
38
}
39
45
public
static
function
getTableClassName
()
46
{
47
return
ConfigurationSettingTable::getClassName
();
48
}
49
50
54
public
function
getWeight
()
55
{
56
return
$this->weight
;
57
}
58
65
public
function
setWeight
(
$weight
)
66
{
67
$this->weight =
$weight
;
68
}
69
73
public
function
getKey
()
74
{
75
return
$this->key
;
76
}
77
82
public
function
setKey
(
$key
)
83
{
84
$this->key =
$key
;
85
}
86
90
public
function
getValue
()
91
{
92
return
unserialize($this->value, [
'allowed_classes'
=>
false
]);
93
}
94
101
public
function
setValue
(
$value
)
102
{
103
$this->value = serialize(
$value
);
104
}
105
109
public
function
getFieldClassName
()
110
{
111
return
$this->fieldClassName
;
112
}
113
121
public
function
setFieldClassName
(
$fieldClassName
)
122
{
123
$this->fieldClassName =
$fieldClassName
;
124
}
125
133
public
static
function
loadByIds
(array $ids)
134
{
135
return
static::getModelList(array(
136
'select'
=> array(
'*'
),
137
'filter'
=> array(
'ID'
=> $ids),
138
));
139
}
140
144
public
function
getGId
()
145
{
146
return
$this->gId
;
147
}
148
155
public
function
setGId
(
$gId
)
156
{
157
$this->gId =
$gId
;
158
}
159
160
}
Bitrix\Report\VisualConstructor\Entity\Configuration
Definition
configuration.php:15
Bitrix\Report\VisualConstructor\Entity\Configuration\$value
$value
Definition
configuration.php:18
Bitrix\Report\VisualConstructor\Entity\Configuration\setGId
setGId($gId)
Definition
configuration.php:155
Bitrix\Report\VisualConstructor\Entity\Configuration\getFieldClassName
getFieldClassName()
Definition
configuration.php:109
Bitrix\Report\VisualConstructor\Entity\Configuration\setWeight
setWeight($weight)
Definition
configuration.php:65
Bitrix\Report\VisualConstructor\Entity\Configuration\$gId
$gId
Definition
configuration.php:16
Bitrix\Report\VisualConstructor\Entity\Configuration\getMapAttributes
static getMapAttributes()
Definition
configuration.php:29
Bitrix\Report\VisualConstructor\Entity\Configuration\setFieldClassName
setFieldClassName($fieldClassName)
Definition
configuration.php:121
Bitrix\Report\VisualConstructor\Entity\Configuration\loadByIds
static loadByIds(array $ids)
Definition
configuration.php:133
Bitrix\Report\VisualConstructor\Entity\Configuration\setValue
setValue($value)
Definition
configuration.php:101
Bitrix\Report\VisualConstructor\Entity\Configuration\getTableClassName
static getTableClassName()
Definition
configuration.php:45
Bitrix\Report\VisualConstructor\Entity\Configuration\setKey
setKey($key)
Definition
configuration.php:82
Bitrix\Report\VisualConstructor\Entity\Configuration\getGId
getGId()
Definition
configuration.php:144
Bitrix\Report\VisualConstructor\Entity\Configuration\$key
$key
Definition
configuration.php:20
Bitrix\Report\VisualConstructor\Entity\Configuration\$fieldClassName
$fieldClassName
Definition
configuration.php:19
Bitrix\Report\VisualConstructor\Entity\Configuration\getWeight
getWeight()
Definition
configuration.php:54
Bitrix\Report\VisualConstructor\Entity\Configuration\getValue
getValue()
Definition
configuration.php:90
Bitrix\Report\VisualConstructor\Entity\Configuration\getKey
getKey()
Definition
configuration.php:73
Bitrix\Report\VisualConstructor\Entity\Configuration\$weight
$weight
Definition
configuration.php:17
Bitrix\Report\VisualConstructor\Fields\Base
Definition
base.php:12
Bitrix\Report\VisualConstructor\Internal\ConfigurationSettingTable
Definition
configurationsetting.php:28
Bitrix\Report\VisualConstructor\Internal\DataManager\getClassName
static getClassName()
Definition
datamanager.php:13
Bitrix\Report\VisualConstructor\Internal\Model
Definition
model.php:18
Bitrix\Report\VisualConstructor\Entity
Definition
configurablemodel.php:3
modules
report
lib
visualconstructor
entity
configuration.php
Создано системой
1.10.0