Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
textarea.php
1<?php
3
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}
viewForm(array $params=array())
Definition textarea.php:14