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

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

 output (WebPacker\Builder $builder)
 
 setContent ($content)
 
 setId ($id)
 
 getId ()
 
 setModuleId ($moduleId)
 
 setUploadDir ($uploadDir)
 
 setDir ($dir)
 
 setName ($name)
 
 setType ($type)
 
 remove ()
 
 getUri ()
 

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

static removeById ($id)
 

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

 saveFile ($content)
 

Защищенные статические члены

static getMimeTypeByFileName ($fileName)
 

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

 $id
 
 $moduleId
 
 $uploadDir
 
 $dir
 
 $name
 
 $type
 
 $content
 

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

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

Методы

◆ getId()

getId ( )

Get file ID.

Возвращает
int|null

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

◆ getMimeTypeByFileName()

static getMimeTypeByFileName ( $fileName)
staticprotected

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

◆ getUri()

getUri ( )

Get uri.

Возвращает
string

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

◆ output()

output ( WebPacker\Builder $builder)

Output.

Аргументы
WebPacker\Builder$builderModule.
Возвращает
Result

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

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

◆ remove()

remove ( )

Remove.

Возвращает
void

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

◆ removeById()

static removeById ( $id)
static

Remove by ID.

Аргументы
int$idID.
Возвращает
void

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

◆ saveFile()

saveFile ( $content)
protected

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

◆ setContent()

setContent ( $content)

Set content.

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

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

◆ setDir()

setDir ( $dir)

Set directory.

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

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

◆ setId()

setId ( $id)

Set file ID.

Аргументы
int$idFile ID.
Возвращает
$this

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

◆ setModuleId()

setModuleId ( $moduleId)

Set module ID.

Аргументы
string$moduleIdBitrix module ID.
Возвращает
$this

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

◆ setName()

setName ( $name)

Set name.

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

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

◆ setType()

setType ( $type)

Set type.

Аргументы
string$typeContent type.
Возвращает
$this

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

◆ setUploadDir()

setUploadDir ( $uploadDir)

Set upload directory.

Аргументы
string$uploadDirUpload directory.
Возвращает
$this

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

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

◆ $content

$content
protected

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

◆ $dir

$dir
protected

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

◆ $id

$id
protected

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

◆ $moduleId

$moduleId
protected

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

◆ $name

$name
protected

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

◆ $type

$type
protected

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

◆ $uploadDir

$uploadDir
protected

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