Bitrix API

File implements Item

Table of Contents

Interfaces

Item

Properties

$content  : FileContent
$dir  : string
$id  : int|null
$isImage  : bool|null
$name  : string
$size  : int|null
$type  : string|null

Methods

__construct()  : mixed
createByLegacyFile()  : static
getPath()  : string

Properties

$dir

public string $dir = ''

$id

public int|null $id = null

$isImage

public bool|null $isImage

$name

public string $name

$size

public int|null $size = 0

$type

public string|null $type = null

Methods

__construct()

public __construct(string $name[, string $dir = '' ][, string|null $type = null ][, int|null $id = null ][, FileContent|null $content = null ][, bool|null $isImage = null ]) : mixed
Parameters
$name : string
$dir : string = ''
$type : string|null = null
$id : int|null = null
$content : FileContent|null = null
$isImage : bool|null = null

createByLegacyFile()

public static createByLegacyFile(File $file) : static
Parameters
$file : File
Return values
static

getPath()

public getPath() : string
Return values
string

        
On this page

Search results