Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
hidden.php
1
<?php
2
namespace
Bitrix\Landing\Field
;
3
4
class
Hidden
extends
\Bitrix\Landing\Field
5
{
14
public
function
viewForm
(array $params = array())
15
{
16
?>
17
<input type=
"hidden"
<?
18
?><?= isset($params[
'additional'
]) ? $params[
'additional'
] .
' '
:
''
?><?
19
?><?= isset($params[
'id'
]) ?
'id="'
. \htmlspecialcharsbx($params[
'id'
]) .
'" '
:
''
?><?
20
?>data-code=
"<?= \htmlspecialcharsbx($this->code)?>"
<?
21
?>name=
"<?= \htmlspecialcharsbx(isset($params['name_format'])
22
? str_replace('#field_code#', $this->code, $params['name_format'])
23
: $this->code)?>"
<?
24
?>value=
"<?= \htmlspecialcharsbx($this->value ? $this->value : $this->default)?>"
<?
25
?> />
26
<?
27
}
28
33
public
function
isEmptyValue
()
34
{
35
return
$this->value ===
''
;
36
}
37
}
Bitrix\Landing\Field\Hidden
Definition
hidden.php:5
Bitrix\Landing\Field\Hidden\isEmptyValue
isEmptyValue()
Definition
hidden.php:33
Bitrix\Landing\Field\Hidden\viewForm
viewForm(array $params=array())
Definition
hidden.php:14
Bitrix\Landing\Field
Definition
field.php:5
Bitrix\Landing\Field
Definition
checkbox.php:2
modules
landing
lib
field
hidden.php
Создано системой
1.10.0