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

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

 __construct (array $file, $name=null)
 
 getFile ()
 
- Открытые члены унаследованные от File
 __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 ()
 

Открытые статические члены

static createByFileData (array $file, $name=null)
 
static createByFileId ($fileId, $name=null)
 

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

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

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

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

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

- Открытые атрибуты унаследованные от HttpResponse
const STORE_COOKIE_NAME = 'STORE_COOKIES'
 

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

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

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

◆ __construct()

__construct ( array $file,
$name = null )

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

Методы

◆ createByFileData()

static createByFileData ( array $file,
$name = null )
static

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

◆ createByFileId()

static createByFileId ( $fileId,
$name = null )
static

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

◆ getFile()

getFile ( )
Возвращает
array

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

◆ prepareFile()

prepareFile ( )
protected
Возвращает
array|bool|null

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

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

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

◆ prepareOptions()

prepareOptions ( )
protected

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

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

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

◆ $file

$file
protected

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