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

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

 __construct ($path, $name=null, $contentType='application/octet-stream')
 getPath ()
 setPath ($path)
 getName ()
 setName ($name)
 getContentType ()
 setContentType ($contentType)
 isShowInline ()
 showInline ($enabled)
 getCacheTime ()
 setCacheTime ($cacheTime)
 send ()
Открытые члены унаследованные от 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 ()

Защищенные члены

 prepareOptions ()
 prepareFile ()
Защищенные члены унаследованные от HttpResponse
 flushStatus ()
 flushHeader ($header)
 setCookie (Web\Cookie $cookie)
 getServerProtocol ()
Защищенные члены унаследованные от Response
 checkContent ($content)
 writeBody ($text)

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

 $path
 $name
 $contentType
 $showInline = false
 $cacheTime = 0
Защищенные данные унаследованные от HttpResponse
 $cookies = []
 $headers
 $lastModified
Защищенные данные унаследованные от Response
 $content

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

Поля данных унаследованные от HttpResponse
const STORE_COOKIE_NAME = 'STORE_COOKIES'

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

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

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

◆ __construct()

__construct ( $path,
$name = null,
$contentType = 'application/octet-stream' )

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

Методы

◆ getCacheTime()

getCacheTime ( )
Возвращает
int

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

◆ getContentType()

getContentType ( )
Возвращает
string

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

◆ getName()

getName ( )
Возвращает
null

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

◆ getPath()

getPath ( )
Возвращает
mixed

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

◆ isShowInline()

isShowInline ( )
Возвращает
bool

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

◆ prepareFile()

prepareFile ( )
protected

Переопределяется в BFile и ResizedImage.

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

◆ prepareOptions()

prepareOptions ( )
protected

Переопределяется в BFile.

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

◆ send()

send ( )

Sends content to the output.

Возвращает
void

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

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

◆ setCacheTime()

setCacheTime ( $cacheTime)
Аргументы
int$cacheTime
Возвращает
File

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

◆ setContentType()

setContentType ( $contentType)
Аргументы
string$contentType
Возвращает
File

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

◆ setName()

setName ( $name)
Аргументы
null$name
Возвращает
File

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

◆ setPath()

setPath ( $path)
Аргументы
mixed$path
Возвращает
File

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

◆ showInline()

showInline ( $enabled)
Аргументы
bool$enabled
Возвращает
File

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

Поля

◆ $cacheTime

$cacheTime = 0
protected

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

◆ $contentType

$contentType
protected

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

◆ $name

$name
protected

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

◆ $path

$path
protected

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

◆ $showInline

$showInline = false
protected

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/main/lib/engine/response/file.php