Bitrix API

DiskManager

Table of Contents

Methods

buildArchive()  : Archive|null
checkFileReadPermission()  : mixed
ensureFolderCreated()  : Folder|null
getFileInfo()  : mixed
getFileName()  : string
getStorage()  : Storage|null
isModZipEnabled()  : bool
makeFileArray()  : mixed
onBuildConnectorList()  : EventResult
Returns available entities for tasks module
OnDiskFileDelete()  : mixed
saveEmailAttachment()  : int|false
saveFile()  : int|false
writeFileToResponse()  : mixed

Methods

buildArchive()

public static buildArchive(string $name, array<string|int, mixed> $fileIds) : Archive|null
Parameters
$name : string
$fileIds : array<string|int, mixed>
Tags
throws
LoaderException
throws
NotImplementedException
Return values
Archive|null

checkFileReadPermission()

public static checkFileReadPermission(mixed $fileID[, mixed $userID = 0 ]) : mixed
Parameters
$fileID : mixed
$userID : mixed = 0

ensureFolderCreated()

public static ensureFolderCreated(int $typeID[, string $siteID = '' ][, bool $useMonthFolders = false ]) : Folder|null
Parameters
$typeID : int
$siteID : string = ''
$useMonthFolders : bool = false
Return values
Folder|null

getFileInfo()

public static getFileInfo(mixed $fileID[, mixed $checkPermissions = true ][, mixed $options = null ]) : mixed
Parameters
$fileID : mixed
$checkPermissions : mixed = true
$options : mixed = null

getFileName()

public static getFileName(int $fileID) : string
Parameters
$fileID : int
Return values
string

getStorage()

public static getStorage([mixed $siteID = '' ]) : Storage|null
Parameters
$siteID : mixed = ''
Return values
Storage|null

isModZipEnabled()

public static isModZipEnabled() : bool
Return values
bool

makeFileArray()

public static makeFileArray(mixed $fileID) : mixed
Parameters
$fileID : mixed

onBuildConnectorList()

Returns available entities for tasks module

public static onBuildConnectorList() : EventResult
Return values
EventResult

OnDiskFileDelete()

public static OnDiskFileDelete(mixed $objectID, mixed $deletedByUserID) : mixed
Parameters
$objectID : mixed
$deletedByUserID : mixed

saveEmailAttachment()

public static saveEmailAttachment(array<string|int, mixed> $fileData[, string $siteID = '' ][, mixed $params = array() ]) : int|false
Parameters
$fileData : array<string|int, mixed>
$siteID : string = ''
$params : mixed = array()
Return values
int|false

saveFile()

public static saveFile(array<string|int, mixed> $fileData[, string $siteID = '' ][, array<string|int, mixed> $params = array() ]) : int|false
Parameters
$fileData : array<string|int, mixed>
$siteID : string = ''
$params : array<string|int, mixed> = array()
Return values
int|false

writeFileToResponse()

public static writeFileToResponse(mixed $fileID[, mixed $options = array() ]) : mixed
Parameters
$fileID : mixed
$options : mixed = array()

        
On this page

Search results