Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Response
+ Граф наследования:Response:

Открытые члены

 flushContent ()
 
 setContent ($content)
 
 getContent ()
 
 initContent ($type=Content::TYPE_JSON)
 
 initContentJson ()
 
 initContentHtml ()
 
- Открытые члены унаследованные от HttpResponse
 __construct ()
 
 flush ($text='')
 
 addHeader ($name, $value='')
 
 setHeaders (Web\HttpHeaders $headers)
 
 addCookie (Web\Cookie $cookie, $replace=true, $checkExpires=true)
 
 allowPersistentCookies ($mode)
 
 getCookies ()
 
 getHeaders ()
 
 setStatus ($status)
 
 getStatus ()
 
 setLastModified (Type\DateTime $time)
 
 redirectTo ($url)
 
 copyHeadersTo (HttpResponse $response)
 
- Открытые члены унаследованные от Response
 clear ()
 
 appendContent ($content)
 
 send ()
 

Защищенные данные

 $content
 
- Защищенные данные унаследованные от HttpResponse
 $cookies = []
 
 $headers
 
 $lastModified
 
- Защищенные данные унаследованные от Response
 $content
 

Дополнительные унаследованные члены

- Открытые атрибуты унаследованные от HttpResponse
const STORE_COOKIE_NAME = 'STORE_COOKIES'
 
- Защищенные члены унаследованные от HttpResponse
 flushStatus ()
 
 flushHeader ($header)
 
 setCookie (Web\Cookie $cookie)
 
 getServerProtocol ()
 
- Защищенные члены унаследованные от Response
 checkContent ($content)
 
 writeBody ($text)
 

Подробное описание

См. определение в файле response.php строка 19

Методы

◆ flushContent()

flushContent ( )

Flush content.

См. определение в файле response.php строка 28

◆ getContent()

getContent ( )

Get Content instance.

Возвращает
Content

Переопределяет метод предка Response.

См. определение в файле response.php строка 52

◆ initContent()

initContent ( $type = Content::TYPE_JSON)

Create Content instance.

Аргументы
string$typeType.
Возвращает
Content

См. определение в файле response.php строка 68

◆ initContentHtml()

initContentHtml ( )

Create ContentHtml instance.

Возвращает
ContentHtml|Content

См. определение в файле response.php строка 88

◆ initContentJson()

initContentJson ( )

Create ContentJson instance.

Возвращает
ContentJson|Content

См. определение в файле response.php строка 78

◆ setContent()

setContent ( $content)

Set Content instance.

Аргументы
Content$contentContent.
Возвращает
$this

Переопределяет метод предка Response.

См. определение в файле response.php строка 41

Данные класса

◆ $content

$content
protected

См. определение в файле response.php строка 22