1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
field.php
См. документацию.
1
<?php
2
namespace
Bitrix\Landing;
3
4
abstract
class
Field
5
{
10
protected
$id
;
11
16
protected
$code
;
17
22
protected
$value
;
23
28
protected
$title
;
29
34
protected
$default
;
35
40
protected
$help
;
41
46
protected
$htmlHelp
;
47
52
protected
$searchable
=
false
;
53
58
protected
$fetchModificator
=
null
;
59
65
public
function
__construct
(
$code
,
array
$params
=
array
())
66
{
67
$this->code = mb_strtoupper(
$code
);
68
$this->value =
null
;
69
$this->
id
= isset(
$params
[
'id'
]) ?
$params
[
'id'
] :
''
;
70
$this->
title
= isset(
$params
[
'title'
]) ?
$params
[
'title'
] :
''
;
71
$this->
default
= isset(
$params
[
'default'
]) ?
$params
[
'default'
] :
null
;
72
$this->help = isset(
$params
[
'help'
]) ?
$params
[
'help'
] :
''
;
73
$this->htmlHelp = isset(
$params
[
'htmlHelp'
]) ?
$params
[
'htmlHelp'
] :
false
;
74
$this->searchable = isset(
$params
[
'searchable'
]) &&
$params
[
'searchable'
] ===
true
;
75
$this->fetchModificator = isset(
$params
[
'fetch_data_modification'
]) ?
$params
[
'fetch_data_modification'
] :
null
;
76
}
77
82
public
function
isEmptyValue
()
83
{
84
return
$this->value ===
null
;
85
}
86
92
public
function
setValue
(
$value
)
93
{
94
$this->value =
$value
;
95
}
96
101
public
function
getValue
()
102
{
103
if
(is_callable($this->fetchModificator))
104
{
105
return
call_user_func_array(
106
$this->fetchModificator,
107
[$this->value]
108
);
109
}
110
return
$this->value;
111
}
112
117
public
function
getHelpValue
()
118
{
119
return
$this->help;
120
}
121
126
public
function
isHtmlHelp
()
127
{
128
return
$this->htmlHelp ===
true
;
129
}
130
135
public
function
isSearchable
()
136
{
137
return
$this->searchable;
138
}
139
145
public
function
setCode
(
$code
)
146
{
147
$this->code = mb_strtoupper(
$code
);
148
}
149
154
public
function
getCode
()
155
{
156
return
$this->code
;
157
}
158
163
public
function
getLabel
()
164
{
165
return
$this->title
;
166
}
167
172
public
function
getType
()
173
{
174
$class = explode(
'\\'
, get_called_class());
175
return
mb_strtolower(array_pop($class));
176
}
177
182
public
function
__toString
()
183
{
184
return
$this->value ? (string)$this->value : (string)$this->
default
;
185
}
186
195
abstract
public
function
viewForm
(
array
$params
=
array
());
196
}
Bitrix\Landing\Field\$value
$value
Определения
field.php:22
Bitrix\Landing\Field\getLabel
getLabel()
Определения
field.php:163
Bitrix\Landing\Field\$htmlHelp
$htmlHelp
Определения
field.php:46
Bitrix\Landing\Field\__construct
__construct($code, array $params=array())
Определения
field.php:65
Bitrix\Landing\Field\$fetchModificator
$fetchModificator
Определения
field.php:58
Bitrix\Landing\Field\isHtmlHelp
isHtmlHelp()
Определения
field.php:126
Bitrix\Landing\Field\setValue
setValue($value)
Определения
field.php:92
Bitrix\Landing\Field\__toString
__toString()
Определения
field.php:182
Bitrix\Landing\Field\$code
$code
Определения
field.php:16
Bitrix\Landing\Field\isEmptyValue
isEmptyValue()
Определения
field.php:82
Bitrix\Landing\Field\getType
getType()
Определения
field.php:172
Bitrix\Landing\Field\viewForm
viewForm(array $params=array())
Bitrix\Landing\Field\setCode
setCode($code)
Определения
field.php:145
Bitrix\Landing\Field\$default
$default
Определения
field.php:34
Bitrix\Landing\Field\getCode
getCode()
Определения
field.php:154
Bitrix\Landing\Field\getValue
getValue()
Определения
field.php:101
Bitrix\Landing\Field\$searchable
$searchable
Определения
field.php:52
Bitrix\Landing\Field\$title
$title
Определения
field.php:28
Bitrix\Landing\Field\isSearchable
isSearchable()
Определения
field.php:135
Bitrix\Landing\Field\$help
$help
Определения
field.php:40
Bitrix\Landing\Field\$id
$id
Определения
field.php:10
Bitrix\Landing\Field\getHelpValue
getHelpValue()
Определения
field.php:117
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$code
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения
options.php:195
Bitrix\Landing\Field
Определения
checkbox.php:2
title
<? endif;?> window document title
Определения
prolog_main_admin.php:76
$params
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения
template.php:799
$title
$title
Определения
pdf.php:123
bitrix
modules
landing
lib
field.php
Создано системой
1.14.0