|
CInbox (Common-Inbox)
0.1
Common functionality for ingesting files for archiving.
|
Public Member Functions | |
| __construct (&$CIFolder) | |
| init () | |
| run () | |
Public Attributes | |
| const | TASK_LABEL = 'Copy to target' |
Protected Member Functions | |
| copyFolder ($sourceFolder, $targetFolder, $targetFolderTemp) | |
| checkTargetFolderCondition ($targetFolder, $updateFolders) | |
| checkTargetFileCondition ($targetFile, $updateFiles) | |
This task copies the files from source folder to target folder.
The actual file transfer process is done by 'rsync' to ensure reliable data transfer. TaskCopyRsync
| TaskCopyToTarget::checkTargetFileCondition | ( | $ | targetFile, |
| $ | updateFiles | ||
| ) | [protected] |
Similar to checkTargetFolderCondition(), but for target files instead of folders. Scope is only one folder (current task's $CIFolder).
| TaskCopyToTarget::checkTargetFolderCondition | ( | $ | targetFolder, |
| $ | updateFolders | ||
| ) | [protected] |
Checks the current situation of target folder, according to the setting given in $updateFolders.
NOTE: Condition mismatch is treated as "STATUS_PBC". This allows an operator to clear all reported warnings/errors before resetting the Item, as the task will try to process all subfolders and report *all* possibly mismatching entries.
$updateFolders must contain a valid option from self::$OPT_UPDATE_FOLDERS.
Prepare everything so it's ready for processing.
Reimplemented from TaskCopy.
Perform the actual steps of this task.
Reimplemented from CITask.
1.7.6.1