Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
textarea.php
1
<?php
2
namespace
Bitrix\Landing\Field
;
3
4
class
Textarea
extends
\Bitrix\Landing\Field\Text
5
{
14
public
function
viewForm
(array $params = array())
15
{
16
?>
17
<textarea <?
18
?><?= isset($params[
'additional'
]) ? $params[
'additional'
] .
' '
:
''
?><?
19
?><?= isset($params[
'id'
]) ?
'id="'
. \htmlspecialcharsbx($params[
'id'
]) .
'" '
:
''
?><?
20
?><?= $this->maxlength > 0 ?
'maxlength="'
. $this->maxlength .
'" '
:
''
?><?
21
?><?= $this->placeholder !=
''
?
'placeholder="'
. $this->placeholder .
'" '
:
''
?><?
22
?><?= isset($params[
'rows'
]) ?
'rows="'
. $params[
'rows'
] .
'" '
:
''
?><?
23
?><?= isset($params[
'autocomplete'
]) ?
'autocomplete="'
. $params[
'autocomplete'
] .
'" '
:
''
?><?
24
?>
class
=
"<?= isset($params['class']) ? \htmlspecialcharsbx($params['class']) : ''?>"
<?
25
?>data-code=
"<?= \htmlspecialcharsbx($this->code)?>"
<?
26
?>name=
"<?= \htmlspecialcharsbx(isset($params['name_format'])
27
? str_replace('#field_code#', $this->code, $params['name_format'])
28
: $this->code)?>"
<?
29
?><?= (isset($params[
'disabled'
]) && $params[
'disabled'
]) ?
' disabled '
:
''
?><?
30
?> ><?= \htmlspecialcharsbx($this->value ? $this->value :
$this->default
)?></textarea>
31
<?
32
}
33
38
public
function
isEmptyValue
()
39
{
40
return
$this->value ===
''
;
41
}
42
}
Bitrix\Landing\Field\Text
Definition
text.php:5
Bitrix\Landing\Field\Textarea
Definition
textarea.php:5
Bitrix\Landing\Field\Textarea\isEmptyValue
isEmptyValue()
Definition
textarea.php:38
Bitrix\Landing\Field\Textarea\viewForm
viewForm(array $params=array())
Definition
textarea.php:14
Bitrix\Landing\Field\$default
$default
Definition
field.php:34
Bitrix\Landing\Field
Definition
checkbox.php:2
modules
landing
lib
field
textarea.php
Создано системой
1.10.0