1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CIMDisk

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

static GetStorage (?int $chatId=null)
static UploadFileRegister ($chatId, $files, $text='', $linesSilentMode=false)
static UploadFile ($hash, &$file, &$package, &$upload, &$error)
static UploadFileUnRegister ($chatId, $files, $messages)
static DeleteFile ($chatId, $fileId)
static UploadFileFromDisk ($chatId, $files, $text='', $options=[], $robot=false)
static UploadFileFromMain ($chatId, $files, ?int $authorId=null)
static SaveToLocalDisk ($fileId)
static IncreaseFileVersionDisk ($chatId, $fileId, ?int $userId=null)
static SaveFromLocalDisk ($chatId, $fileId, bool $symlink=false, ?int $userId=null)
static RecordShare (int $chatId, int $fileId, ?int $userId=null)
static UploadAvatar ($hash, &$file, &$package, &$upload, &$error)
static UpdateAvatarId ($chatId, $fileId, $userId=null)
static GetHistoryFiles ($chatId, $historyPage=1)
static GetHistoryFilesByName ($chatId, $name)
static GetMaxFileId ($chatId)
static GetFiles ($chatId, $fileId=false, $checkPermission=true)
static GetFileParams ($chatId, $fileModel, $options=[])
static Enabled ()
static updateFolderRights (int $chatId, bool $fullRights=false)
static GetFolderModel ($chatId, $createFolder=true)
static ChangeFolderMembers ($chatId, $userId, $append=true)
static GetBackgroundFolderModel ($userId=null)
static CommitBackgroundFile ($userId, $fileId)
static DeleteBackgroundFile ($userId, $fileId)
static GetLocalDiskSavedModel ($userId=null)
static GetStorageId (?int $chatId=null)
static SetStorageId ($id)
static GetLocalDiskFolderPath ()
static GetLocalDiskFilePath ($fileId=0)
static GetPublicPath ($type, File $fileModel, $checkContentVersion=true)
static GetFileLink (File $fileModel)
static GetFileLinkSign ()
static RemoveTmpFileAgent ()
static GetUserId ()
static EnabledExternalLink ()
static SetEnabledExternalLink ($flag=true)
static GetTopDepartmentCode ()
static OnAfterDeleteFile ($fileId, $userId, $fileParams=Array())

Поля данных

const MODULE_ID = 'im'
const PATH_TYPE_SHOW = 'show'
const PATH_TYPE_PREVIEW = 'preview'
const PATH_TYPE_DOWNLOAD = 'download'

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

static checkDirectlyUseFileAccess (File $fileModel, Disk\Folder $folderModel, int $userId)
static uploadFromLocalDisk (int $chatId, int $fileId, ?int $userId=null, bool $asFile=false)
static createSymlink (File $fileModel, int $chatId, int $userId, bool $withSharingRights=true)
static getFileModel (int $fileId, ?int $contextUserId)
static createSubFolder (int $chatId, int $parentId)
static createFolder (int $chatId, string $chatType)
static isStorageAssociatedWithChat (int $storageId)

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

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

Методы

◆ ChangeFolderMembers()

ChangeFolderMembers ( $chatId,
$userId,
$append = true )
static
Аргументы
int$chatId
int | int[]$userId
bool$append
Возвращает
bool

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

◆ checkDirectlyUseFileAccess()

checkDirectlyUseFileAccess ( File $fileModel,
Disk\Folder $folderModel,
int $userId )
staticprotected

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

◆ CommitBackgroundFile()

CommitBackgroundFile ( $userId,
$fileId )
static
Аргументы
int$userId
int$fileId
Возвращает
bool

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

◆ createFolder()

createFolder ( int $chatId,
string $chatType )
staticprotected
Аргументы
int$chatId
string$chatType
Возвращает
Disk\Folder|false|null

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

◆ createSubFolder()

createSubFolder ( int $chatId,
int $parentId )
staticprotected
Аргументы
int$chatId
int$parentId
Возвращает
Disk\Folder|Disk\Internals\Model|false|null

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

◆ createSymlink()

createSymlink ( File $fileModel,
int $chatId,
int $userId,
bool $withSharingRights = true )
staticprotected

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

◆ DeleteBackgroundFile()

DeleteBackgroundFile ( $userId,
$fileId )
static
Аргументы
int$userId
int$fileId
Возвращает
bool

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

◆ DeleteFile()

DeleteFile ( $chatId,
$fileId )
static
Аргументы
int$chatId
int$fileId
Возвращает
bool

global \CUser $USER

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

◆ Enabled()

Enabled ( )
static

Is full functionality enabled.

Возвращает
bool

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

◆ EnabledExternalLink()

EnabledExternalLink ( )
static
Возвращает
bool

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

◆ GetBackgroundFolderModel()

GetBackgroundFolderModel ( $userId = null)
static
Аргументы
int | null$userId
Возвращает
\Bitrix\Disk\Folder|null

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

◆ GetFileLink()

GetFileLink ( File $fileModel)
static
Аргументы
File$fileModel
Возвращает
false|string

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

◆ GetFileLinkSign()

GetFileLinkSign ( )
static
Возвращает
string

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

◆ getFileModel()

getFileModel ( int $fileId,
?int $contextUserId )
staticprotected

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

◆ GetFileParams()

GetFileParams ( $chatId,
$fileModel,
$options = [] )
static
Аргументы
int$chatId
File | int$fileModel
Возвращает
array|false

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

◆ GetFiles()

GetFiles ( $chatId,
$fileId = false,
$checkPermission = true )
static
Аргументы
int$chatId
int | int[] | false$fileId
bool$checkPermission
Возвращает
array

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

◆ GetFolderModel()

GetFolderModel ( $chatId,
$createFolder = true )
static
Аргументы
int$chatIdChat Id.
bool$createFolderCreate disk folder if not exists.
array$chatChat data [TYPE, DISK_FOLDER_ID], optional. Prevent repeated queries
Возвращает
\Bitrix\Disk\Folder|false|null

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

◆ GetHistoryFiles()

GetHistoryFiles ( $chatId,
$historyPage = 1 )
static
Аргументы
int$chatId
int$historyPage
Возвращает
array
См. также
\Bitrix\Im\Disk\ProxyType\Im::getSecurityContextByUser

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

◆ GetHistoryFilesByName()

GetHistoryFilesByName ( $chatId,
$name )
static
Аргументы
int$chatId
string$name
Возвращает
array
См. также
\Bitrix\Im\Disk\ProxyType\Im::getSecurityContextByUser

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

◆ GetLocalDiskFilePath()

GetLocalDiskFilePath ( $fileId = 0)
static
Аргументы
int$fileId
Возвращает
string

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

◆ GetLocalDiskFolderPath()

GetLocalDiskFolderPath ( )
static
Возвращает
string

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

◆ GetLocalDiskSavedModel()

GetLocalDiskSavedModel ( $userId = null)
static
Аргументы
int | null$userId
Возвращает
\Bitrix\Disk\Folder|false|null

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

◆ GetMaxFileId()

GetMaxFileId ( $chatId)
static
Аргументы
int$chatId
Возвращает
int

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

◆ GetPublicPath()

GetPublicPath ( $type,
File $fileModel,
$checkContentVersion = true )
static
Аргументы
string$type
File$fileModel
bool$checkContentVersion
Возвращает
string

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

◆ GetStorage()

GetStorage ( ?int $chatId = null)
static

Returns IM's specialized storage.

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

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

◆ GetStorageId()

GetStorageId ( ?int $chatId = null)
static
Возвращает
int

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

◆ GetTopDepartmentCode()

GetTopDepartmentCode ( )
static

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

◆ GetUserId()

GetUserId ( )
static
Возвращает
int

global \CUser $USER

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

◆ IncreaseFileVersionDisk()

IncreaseFileVersionDisk ( $chatId,
$fileId,
?int $userId = null )
static
Аргументы
int$chatId
int$fileId
int | null$userId
Возвращает
File|false

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

◆ isStorageAssociatedWithChat()

isStorageAssociatedWithChat ( int $storageId)
staticprotected

Checks if the given storage is associated with a chat.

A storage is considered associated with a chat if it is either the default messenger storage or if it belongs to a collab, as the collab and its chat share the same storage.

Аргументы
int$storageId
Возвращает
bool

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

◆ OnAfterDeleteFile()

OnAfterDeleteFile ( $fileId,
$userId,
$fileParams = Array() )
static
Аргументы
int$fileId
int$userId
array$fileParams
Возвращает
bool

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

◆ RecordShare()

RecordShare ( int $chatId,
int $fileId,
?int $userId = null )
static
Аргументы
int$chatId
int$fileId
int | null$userId
Возвращает
bool

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

◆ RemoveTmpFileAgent()

RemoveTmpFileAgent ( )
static
Возвращает
string

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

◆ SaveFromLocalDisk()

SaveFromLocalDisk ( $chatId,
$fileId,
bool $symlink = false,
?int $userId = null )
static
Аргументы
int$chatId
int$fileId
bool$symlink
int | null$userId
Возвращает
File|false

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

◆ SaveToLocalDisk()

SaveToLocalDisk ( $fileId)
static
Аргументы
int$fileId
Возвращает
array{FILE: File, FOLDER: \Bitrix\Disk\Folder}|false

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

◆ SetEnabledExternalLink()

SetEnabledExternalLink ( $flag = true)
static
Аргументы
bool$flag
Возвращает
bool

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

◆ SetStorageId()

SetStorageId ( $id)
static
Аргументы
int$id
Возвращает
bool

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

◆ UpdateAvatarId()

UpdateAvatarId ( $chatId,
$fileId,
$userId = null )
static
Аргументы
int$chatId
int$fileId
int | null$userId
Возвращает
bool

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

◆ updateFolderRights()

updateFolderRights ( int $chatId,
bool $fullRights = false )
static

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

◆ UploadAvatar()

UploadAvatar ( $hash,
& $file,
& $package,
& $upload,
& $error )
static
Аргументы
string$hash
array$file
\Bitrix\Main\UI\Uploader\Log$package
\Bitrix\Main\UI\Uploader\Log$upload
string$error
Возвращает
bool

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

◆ UploadFile()

UploadFile ( $hash,
& $file,
& $package,
& $upload,
& $error )
static
Аргументы
string$hash
array$file
\Bitrix\Main\UI\Uploader\Log$package
\Bitrix\Main\UI\Uploader\Log$upload
string$error
Возвращает
bool

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

◆ UploadFileFromDisk()

UploadFileFromDisk ( $chatId,
$files,
$text = '',
$options = [],
$robot = false )
static
Аргументы
int$chatId
array$files
string$text
array$options
bool$robot
Возвращает
array|bool

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

◆ UploadFileFromMain()

UploadFileFromMain ( $chatId,
$files,
?int $authorId = null )
static
Аргументы
int$chatId
int[]$files
Возвращает
int[]|false

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

◆ UploadFileRegister()

UploadFileRegister ( $chatId,
$files,
$text = '',
$linesSilentMode = false )
static
Аргументы
int$chatId
array$files
string$text
false$linesSilentMode
Возвращает
array|false

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

◆ UploadFileUnRegister()

UploadFileUnRegister ( $chatId,
$files,
$messages )
static
Аргументы
int$chatId
array$files
array$messages
Возвращает
array|false

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

◆ uploadFromLocalDisk()

uploadFromLocalDisk ( int $chatId,
int $fileId,
?int $userId = null,
bool $asFile = false )
staticprotected

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

Поля

◆ MODULE_ID

const MODULE_ID = 'im'

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

◆ PATH_TYPE_DOWNLOAD

const PATH_TYPE_DOWNLOAD = 'download'

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

◆ PATH_TYPE_PREVIEW

const PATH_TYPE_PREVIEW = 'preview'

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

◆ PATH_TYPE_SHOW

const PATH_TYPE_SHOW = 'show'

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


Объявления и описания членов класса находятся в файле: