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