|
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) |
|
См. определение в файле filehash.php строка 35
◆ addFile()
static addFile |
( |
|
$bucketId, |
|
|
|
$path, |
|
|
array |
$fileInfo |
|
) |
| |
|
static |
Add a file hash to the database.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
string | $path | Path to the file. |
array | $fileInfo | File info as it returned by CCloudStorageBucket::GetFileInfo. |
- Возвращает
- null|Main\DB\Result
- См. также
- CCloudStorageBucket::GetFileInfo
См. определение в файле filehash.php строка 269
◆ addList()
static addList |
( |
|
$bucketId, |
|
|
array |
$files |
|
) |
| |
|
static |
Stores file hashes to the database.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
array | $files | File list as it returned by CCloudStorageBucket::ListFiles. |
- Возвращает
- Main\DB\Result
- См. также
- CCloudStorageBucket::ListFiles
См. определение в файле filehash.php строка 119
◆ copyToFileHash()
static copyToFileHash |
( |
|
$lastKey, |
|
|
|
$pageSize |
|
) |
| |
|
static |
Copies file hash information from clouds module table to the main module. Returns an array with copy statistics information.
- Аргументы
-
integer | $lastKey | Where to start. |
integer | $pageSize | Batch size. |
- Возвращает
- array
См. определение в файле filehash.php строка 512
◆ deleteAll()
static deleteAll |
( |
|
$bucketId | ) |
|
|
static |
Clears all stored file hashes for the bucket.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
- Возвращает
- Main\DB\Result
См. определение в файле filehash.php строка 303
◆ deleteByFilePath()
static deleteByFilePath |
( |
|
$bucketId, |
|
|
|
$filePath |
|
) |
| |
|
static |
Clears a stored file hashe for the filePath for the bucket.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
string | $filePath | File path. |
- Возвращает
- Main\DB\Result
См. определение в файле filehash.php строка 320
◆ dirList()
static dirList |
( |
|
$bucketId, |
|
|
|
$path, |
|
|
|
$order, |
|
|
|
$filter |
|
) |
| |
|
static |
Returns file listing with "folders", sizes and modification times.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
string | $path | Directory path. |
array | $order | How to sort. |
array | $filter | Additional filter. |
- Возвращает
- Main\DB\Result
См. определение в файле filehash.php строка 344
◆ duplicateList()
static duplicateList |
( |
|
$bucketId, |
|
|
|
$filter, |
|
|
|
$order, |
|
|
|
$limit = 0 |
|
) |
| |
|
static |
Returns duplicate files by bucket, hash, and size.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
array | $filter | Additional filter to pass to FileHashTable. |
array | $order | Sort order. |
integer | $limit | Records count. |
- Возвращает
- Main\DB\Result
- См. также
- \Bitrix\Main\File\Internal\FileHashTable
См. определение в файле filehash.php строка 398
◆ getDuplicatesStat()
static getDuplicatesStat |
( |
|
$bucketId | ) |
|
|
static |
Returns duplicates summary statistics.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
- Возвращает
- array
См. определение в файле filehash.php строка 477
◆ getFileDuplicates()
static getFileDuplicates |
( |
|
$bucketId, |
|
|
|
$fileHash, |
|
|
|
$fileSize |
|
) |
| |
|
static |
Returns duplicate files list by bucket, hash, and size.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
array | $fileHash | File hash. |
array | $fileSize | File size. |
- Возвращает
- array
- См. также
- \Bitrix\Main\File\Internal\FileHashTable
См. определение в файле filehash.php строка 447
◆ getLastKey()
static getLastKey |
( |
|
$bucketId | ) |
|
|
static |
Returns last stored key for given bucket.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
- Возвращает
- string
См. определение в файле filehash.php строка 287
◆ getMap()
Returns entity map definition.
- Возвращает
- array
См. определение в файле filehash.php строка 52
◆ getTableName()
Returns DB table name for entity.
- Возвращает
- string
См. определение в файле filehash.php строка 42
◆ prepareDuplicates()
static prepareDuplicates |
( |
|
$bucketId, |
|
|
& |
$fileIds |
|
) |
| |
|
static |
Checks candidates from file duplicates delete. Returns future file original identifier.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
array | &$fileIds | Array of file identifiers candidates for duplicate delete. |
- Возвращает
- false|integer
См. определение в файле filehash.php строка 559
◆ syncEnd()
static syncEnd |
( |
|
$bucketId, |
|
|
|
$path, |
|
|
|
$prevLastKey |
|
) |
| |
|
static |
Sync file hashes to the database. Removes all keys beyond the $prevLastKey.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
string | $path | File list relative path. |
string | $prevLastKey | Last key returned by last call to CCloudStorageBucket::ListFiles. |
- Возвращает
- null|Main\DB\Result
- См. также
- \Bitrix\Clouds\FileHashTable::syncList
См. определение в файле filehash.php строка 244
◆ syncList()
static 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.
- Аргументы
-
integer | $bucketId | Clouds storage bucket identifier. |
string | $path | File list relative path. |
array | $files | File list as it returned by CCloudStorageBucket::ListFiles. |
string | $prevLastKey | Last key returned by previous call to CCloudStorageBucket::ListFiles. |
- Возвращает
- null|Main\DB\Result
- См. также
- CCloudStorageBucket::ListFiles
См. определение в файле filehash.php строка 159
◆ validateFileHash()
static validateFileHash |
( |
| ) |
|
|
static |
Returns validators for FILE_HASH field.
- Возвращает
- array
См. определение в файле filehash.php строка 103
◆ validateFilePath()
static validateFilePath |
( |
| ) |
|
|
static |
Returns validators for FILE_PATH field.
- Возвращает
- array
См. определение в файле filehash.php строка 91