Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Storage

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

static getStorage ()
 
static getUrlManager ()
 
static getObjectsByFileId ($fileId, $limit=0)
 
static getObjectByAttachment (array $attachment, $create=false)
 
static registerAttachment (array $attachment)
 
static unregisterAttachment ($fileId)
 

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

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

Методы

◆ getObjectByAttachment()

static getObjectByAttachment ( array $attachment,
$create = false )
static

Returns disk object by attachment file data (creates one if not exists)

Аргументы
array$attachmentAttachment file data.
boolean$createCreate object if not exists.
Возвращает
\Bitrix\Disk\File|false|null

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

◆ getObjectsByFileId()

static getObjectsByFileId ( $fileId,
$limit = 0 )
static

Returns disk objects by file ID

Аргументы
int$fileIdFile ID.
int$limitLimit.
Возвращает
array

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

◆ getStorage()

static getStorage ( )
static

Returns attachments disk storage

Возвращает
\Bitrix\Disk\Storage|false

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

◆ getUrlManager()

static getUrlManager ( )
static

Returns disk url manager

Возвращает
\Bitrix\Disk\UrlManager|false

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

◆ registerAttachment()

static registerAttachment ( array $attachment)
static

Creates disk object for attachment file

Аргументы
array$attachmentAttachment file data.
Возвращает
\Bitrix\Disk\File|false|null

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

◆ unregisterAttachment()

static unregisterAttachment ( $fileId)
static

Deletes disk objects by file ID

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

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