Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
contenthtml.php
1<?php
9
12
13Loc::loadMessages(__FILE__);
14
19class ContentHtml extends Content
20{
24 protected $html;
25
29 public function set($html)
30 {
31 $this->html = $html;
32 }
33
37 public function toText()
38 {
39 if ($this->errors->isEmpty())
40 {
41 return $this->html;
42 }
43 else
44 {
45 return implode('<br>', $this->getErrorMessages());
46 }
47
48 }
49}
static loadMessages($file)
Definition loc.php:64