Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
contenthtml.php
1
<?php
8
namespace
Bitrix\Sender\Internals\QueryController
;
9
10
use
Bitrix\Main\Localization\Loc
;
11
use
Bitrix\Main\HttpResponse
;
12
13
Loc::loadMessages
(__FILE__);
14
19
class
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
}
Bitrix\Main\HttpResponse
Definition
httpresponse.php:8
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Sender\Internals\QueryController\Content
Definition
content.php:21
Bitrix\Sender\Internals\QueryController\ContentHtml
Definition
contenthtml.php:20
Bitrix\Sender\Internals\QueryController\ContentHtml\$html
$html
Definition
contenthtml.php:24
Bitrix\Sender\Internals\QueryController\ContentHtml\toText
toText()
Definition
contenthtml.php:37
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
sender
lib
internals
querycontroller
contenthtml.php
Создано системой
1.10.0