Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
}
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\Main\Response
Definition
response.php:5
Bitrix\Main\Response\setContent
setContent($content)
Definition
response.php:31
Bitrix\Main\Response\flush
flush($text='')
Definition
response.php:17
Bitrix\Main\Response\$content
$content
Definition
response.php:7
Bitrix\Main\Response\getContent
getContent()
Definition
response.php:79
Bitrix\Sender\Internals\QueryController\Response\setContent
setContent($content)
Definition
response.php:41
Bitrix\Sender\Internals\QueryController\Response\$content
$content
Definition
response.php:22
Bitrix\Sender\Internals\QueryController\Response\getContent
getContent()
Definition
response.php:52
Bitrix\Sender\Internals\QueryController\Response\initContentJson
initContentJson()
Definition
response.php:78
Bitrix\Sender\Internals\QueryController\Response\initContent
initContent($type=Content::TYPE_JSON)
Definition
response.php:68
Bitrix\Sender\Internals\QueryController\Response\initContentHtml
initContentHtml()
Definition
response.php:88
Bitrix\Sender\Internals\QueryController\Response\flushContent
flushContent()
Definition
response.php:28
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
sender
lib
internals
querycontroller
response.php
Создано системой
1.10.0