1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс FileHashTable
Граф наследования:FileHashTable:
DataManager

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

static getTableName ()
static getMap ()
static validateFilePath ()
static validateFileHash ()
static addList ($bucketId, array $files)
static syncList ($bucketId, $path, array $files, $prevLastKey)
static syncEnd ($bucketId, $path, $prevLastKey)
static addFile ($bucketId, $path, array $fileInfo)
static getLastKey ($bucketId)
static deleteAll ($bucketId)
static deleteByFilePath ($bucketId, $filePath)
static dirList ($bucketId, $path, $order, $filter)
static duplicateList ($bucketId, $filter, $order, $limit=0)
static getFileDuplicates ($bucketId, $fileHash, $fileSize)
static getDuplicatesStat ($bucketId)
static copyToFileHash ($lastKey, $pageSize)
static prepareDuplicates ($bucketId, &$fileIds)
Открытые статические члены унаследованные от DataManager
static getEntity ()
static unsetEntity ($class)
static getConnectionName ()
static getTitle ()
static getObjectClass ()
static getObjectClassName ()
static getCollectionClass ()
static getCollectionClassName ()
static getObjectParentClass ()
static getCollectionParentClass ()
static getQueryClass ()
static getEntityClass ()
static createObject ($setDefaultValues=true)
static createCollection ()
static wakeUpObject ($row)
static wakeUpCollection ($rows)
static getUfId ()
static isUts ()
static isUtm ()
static setDefaultScope ($query)
static postInitialize (Entity $entity)
static getByPrimary ($primary, array $parameters=array())
static getById ($id)
static getRowById ($id, array $parameters=[])
static getRow (array $parameters)
static getList (array $parameters=array())
static getCount ($filter=array(), array $cache=array())
static query ()
static checkFields (Result $result, $primary, array $data)
static add (array $data)
static addMulti ($rows, $ignoreEvents=false)
static update ($primary, array $data)
static delete ($primary)
static enableCrypto ($field, $table=null, $mode=true)
static cryptoEnabled ($field, $table=null)
static setCurrentDeletingObject ($object)
static cleanCache ()
static isCacheable ()
static onBeforeAdd (Event $event)
static onAdd (Event $event)
static onAfterAdd (Event $event)
static onBeforeUpdate (Event $event)
static onUpdate (Event $event)
static onAfterUpdate (Event $event)
static onBeforeDelete (Event $event)
static onDelete (Event $event)
static onAfterDelete (Event $event)

Дополнительные унаследованные члены

Поля данных унаследованные от DataManager
const EVENT_ON_BEFORE_ADD = "OnBeforeAdd"
const EVENT_ON_ADD = "OnAdd"
const EVENT_ON_AFTER_ADD = "OnAfterAdd"
const EVENT_ON_BEFORE_UPDATE = "OnBeforeUpdate"
const EVENT_ON_UPDATE = "OnUpdate"
const EVENT_ON_AFTER_UPDATE = "OnAfterUpdate"
const EVENT_ON_BEFORE_DELETE = "OnBeforeDelete"
const EVENT_ON_DELETE = "OnDelete"
const EVENT_ON_AFTER_DELETE = "OnAfterDelete"
Защищенные статические члены унаследованные от DataManager
static getObjectClassByDataClass ($dataClass)
static getCollectionClassByDataClass ($dataClass)
static replaceFieldName ($data=array())
static validatePrimary ($primary)
static checkUfFields ($object, $ufdata, $result)
static getAddStrategy ()
static sysAddInternal (AddStrategy $strategy, array $data, bool $ignoreEvents=false,)
static sysAddMultiInternal (AddStrategy $strategy, array $multiData, bool $ignoreEvents=false,)
static callOnBeforeAddEvent ($object, $fields, $result)
static callOnAddEvent ($object, $fields, $ufdata)
static callOnAfterAddEvent ($object, $fields, $id)
static callOnBeforeUpdateEvent ($object, $fields, $result)
static callOnUpdateEvent ($object, $fields, $ufdata)
static callOnAfterUpdateEvent ($object, $fields)
static callOnBeforeDeleteEvent ($object, $entity, $result)
static callOnDeleteEvent ($object, $entity)
static callOnAfterDeleteEvent ($object, $entity)
Статические защищенные данные унаследованные от DataManager
static $entity
static $objectClass
static $collectionClass
static $currentDeletingObjects

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

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

Методы

◆ addFile()

addFile ( $bucketId,
$path,
array $fileInfo )
static

Add a file hash to the database.

Аргументы
int$bucketIdClouds storage bucket identifier.
string$pathPath to the file.
array$fileInfoFile info as it returned by CCloudStorageBucket\GetFileInfo.
Возвращает
null|\Bitrix\Main\DB\Result
См. также
\CCloudStorageBucket::GetFileInfo

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

◆ addList()

addList ( $bucketId,
array $files )
static

Stores file hashes to the database.

Аргументы
int$bucketIdClouds storage bucket identifier.
array$filesFile list as it returned by \CCloudStorageBucket::ListFiles.
Возвращает
\Bitrix\Main\DB\Result
См. также
\CCloudStorageBucket::ListFiles

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

◆ copyToFileHash()

copyToFileHash ( $lastKey,
$pageSize )
static

Copies file hash information from clouds module table to the main module. Returns an array with copy statistics information.

Аргументы
int$lastKeyWhere to start.
int$pageSizeBatch size.
Возвращает
array

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

◆ deleteAll()

deleteAll ( $bucketId)
static

Clears all stored file hashes for the bucket.

Аргументы
int$bucketIdClouds storage bucket identifier.
Возвращает
\Bitrix\Main\DB\Result

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

◆ deleteByFilePath()

deleteByFilePath ( $bucketId,
$filePath )
static

Clears a stored file hashe for the filePath for the bucket.

Аргументы
int$bucketIdClouds storage bucket identifier.
string$filePathFile path.
Возвращает
\Bitrix\Main\DB\Result

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

◆ dirList()

dirList ( $bucketId,
$path,
$order,
$filter )
static

Returns file listing with "folders", sizes and modification times.

Аргументы
int$bucketIdClouds storage bucket identifier.
string$pathDirectory path.
array$orderHow to sort.
array$filterAdditional filter.
Возвращает
\Bitrix\Main\DB\Result

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

◆ duplicateList()

duplicateList ( $bucketId,
$filter,
$order,
$limit = 0 )
static

Returns duplicate files by bucket, hash, and size.

Аргументы
int$bucketIdClouds storage bucket identifier.
array$filterAdditional filter to pass to FileHashTable.
array$orderSort order.
int$limitRecords count.
Возвращает
\Bitrix\Main\DB\Result
См. также
\Bitrix\Main\File\Internal\FileHashTable

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

◆ getDuplicatesStat()

getDuplicatesStat ( $bucketId)
static

Returns duplicates summary statistics.

Аргументы
int$bucketIdClouds storage bucket identifier.
Возвращает
array

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

◆ getFileDuplicates()

getFileDuplicates ( $bucketId,
$fileHash,
$fileSize )
static

Returns duplicate files list by bucket, hash, and size.

Аргументы
int$bucketIdClouds storage bucket identifier.
array$fileHashFile hash.
array$fileSizeFile size.
Возвращает
array
См. также
\Bitrix\Main\File\Internal\FileHashTable

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

◆ getLastKey()

getLastKey ( $bucketId)
static

Returns last stored key for given bucket.

Аргументы
int$bucketIdClouds storage bucket identifier.
Возвращает
string

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

◆ getMap()

getMap ( )
static

Returns entity map definition.

Возвращает
array

Переопределяет метод предка DataManager.

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

◆ getTableName()

getTableName ( )
static

Returns DB table name for entity.

Возвращает
string

Переопределяет метод предка DataManager.

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

◆ prepareDuplicates()

prepareDuplicates ( $bucketId,
& $fileIds )
static

Checks candidates from file duplicates delete. Returns future file original identifier.

Аргументы
int$bucketIdClouds storage bucket identifier.
array&$fileIdsArray of file identifiers candidates for duplicate delete.
Возвращает
false|int

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

◆ syncEnd()

syncEnd ( $bucketId,
$path,
$prevLastKey )
static

Sync file hashes to the database. Removes all keys beyond the $prevLastKey.

Аргументы
int$bucketIdClouds storage bucket identifier.
string$pathFile list relative path.
string$prevLastKeyLast key returned by last call to CCloudStorageBucket\ListFiles.
Возвращает
null|\Bitrix\Main\DB\Result
См. также
\Bitrix\Clouds\FileHashTable::syncList

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

◆ syncList()

syncList ( $bucketId,
$path,
array $files,
$prevLastKey )
static

Sync file hashes to the database. Adds new keys and removes missing between $files[last_key] and $lastKey.

Аргументы
int$bucketIdClouds storage bucket identifier.
string$pathFile list relative path.
array$filesFile list as it returned by CCloudStorageBucket\ListFiles.
string$prevLastKeyLast key returned by previous call to CCloudStorageBucket\ListFiles.
Возвращает
null|\Bitrix\Main\DB\Result
См. также
\CCloudStorageBucket::ListFiles

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

◆ validateFileHash()

validateFileHash ( )
static

Returns validators for FILE_HASH field.

Возвращает
array

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

◆ validateFilePath()

validateFilePath ( )
static

Returns validators for FILE_PATH field.

Возвращает
array

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


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