1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс DownloadResponse
Граф наследования:DownloadResponse:
HttpResponse Response

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

 __construct (string $content, string $name='download_file', string $contentType='application/octet-stream')
Открытые члены унаследованные от 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 ()
 setContent ($content)
 appendContent ($content)
 getContent ()
 send ()

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

Поля данных унаследованные от HttpResponse
const STORE_COOKIE_NAME = 'STORE_COOKIES'
Защищенные члены унаследованные от HttpResponse
 flushStatus ()
 flushHeader ($header)
 setCookie (Web\Cookie $cookie)
 getServerProtocol ()
Защищенные члены унаследованные от Response
 checkContent ($content)
 writeBody ($text)
Защищенные данные унаследованные от HttpResponse
 $cookies = []
 $headers
 $lastModified
Защищенные данные унаследованные от Response
 $content

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

Response with headers that induce browser downloading as file should be in module main

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

Конструктор(ы)

◆ __construct()

__construct ( string $content,
string $name = 'download_file',
string $contentType = 'application/octet-stream' )

Constructor

Аргументы
string$contentContent to download
string$nameName of downloaded file (should be compliant with standards)
string$contentTypeMIME content type for browser

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


Объявления и описания членов класса находятся в файле: