Bitrix API

CopyFilesOnItemClone uses Singleton

When copying entities, it becomes necessary, in custom fields of the file type, not only to copy the file ID, but also the file itself, so that deletion from the new entity does not affect the old one.

This class provides functionality to manage the lifecycle of this process.

Table of Contents

Constants

CLEAN_FILE_QUEUE_KEY  = 'clean_copy_file'

Methods

__construct()  : mixed
__wakeup()  : mixed
execute()  : void
getInstance()  : static
removeFileFromNotUsedCleanQueue()  : void
Remove file from cleanup queue.

Constants

Methods

getInstance()

public static getInstance() : static
Return values
static

removeFileFromNotUsedCleanQueue()

Remove file from cleanup queue.

public static removeFileFromNotUsedCleanQueue(int $fileId) : void
Parameters
$fileId : int
Tags
see
self::addFileToNotUsedCleanQueue

        
On this page

Search results