1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
response.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
Response
extends
HttpResponse
20
{
22
protected
$content
;
23
28
public
function
flushContent
()
29
{
30
$this->content = $this->
getContent
();
31
$this->content->onFlush();
32
$this->
flush
($this->content->toText());
33
}
34
41
public
function
setContent
(
$content
)
42
{
43
$this->content =
$content
;
44
return
$this;
45
}
46
52
public
function
getContent
()
53
{
54
if
($this->content)
55
{
56
return
$this->content
;
57
}
58
59
return
$this->
initContent
();
60
}
61
68
public
function
initContent
(
$type
=
Content::TYPE_JSON
)
69
{
70
return
$this->
setContent
(
Content::create
($this,
$type
))->getContent();
71
}
72
78
public
function
initContentJson
()
79
{
80
return
$this->
initContent
(
Content::TYPE_JSON
);
81
}
82
88
public
function
initContentHtml
()
89
{
90
return
$this->
initContent
(
Content::TYPE_HTML
);
91
}
92
}
$type
$type
Определения
options.php:106
Bitrix\Main\HttpResponse
Определения
httpresponse.php:8
Bitrix\Main\Response
Определения
response.php:5
Bitrix\Main\Response\setContent
setContent($content)
Определения
response.php:31
Bitrix\Main\Response\flush
flush($text='')
Определения
response.php:17
Bitrix\Main\Response\$content
$content
Определения
response.php:7
Bitrix\Main\Response\getContent
getContent()
Определения
response.php:79
Bitrix\Sender\Internals\QueryController\Content\TYPE_JSON
const TYPE_JSON
Определения
content.php:22
Bitrix\Sender\Internals\QueryController\Content\TYPE_HTML
const TYPE_HTML
Определения
content.php:23
Bitrix\Sender\Internals\QueryController\Content\create
static create(Response $response, $type)
Определения
content.php:31
Bitrix\Sender\Internals\QueryController\Response\setContent
setContent($content)
Определения
response.php:41
Bitrix\Sender\Internals\QueryController\Response\$content
$content
Определения
response.php:22
Bitrix\Sender\Internals\QueryController\Response\getContent
getContent()
Определения
response.php:52
Bitrix\Sender\Internals\QueryController\Response\initContentJson
initContentJson()
Определения
response.php:78
Bitrix\Sender\Internals\QueryController\Response\initContent
initContent($type=Content::TYPE_JSON)
Определения
response.php:68
Bitrix\Sender\Internals\QueryController\Response\initContentHtml
initContentHtml()
Определения
response.php:88
Bitrix\Sender\Internals\QueryController\Response\flushContent
flushContent()
Определения
response.php:28
bitrix
modules
sender
lib
internals
querycontroller
response.php
Создано системой
1.14.0