CInbox (Common-Inbox)  0.1
Common functionality for ingesting files for archiving.
Public Member Functions | Public Attributes | Protected Member Functions
TaskCopyToTarget Class Reference
Inheritance diagram for TaskCopyToTarget:
TaskCopyRsync TaskCopy CITask

List of all members.

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)

Detailed Description

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

Author:
Peter Bubestinger-Steindl (pb@av-rd.com)
See also:

Member Function Documentation

TaskCopyToTarget::checkTargetFileCondition ( targetFile,
updateFiles 
) [protected]

Similar to checkTargetFolderCondition(), but for target files instead of folders. Scope is only one folder (current task's $CIFolder).

See also:
self::OPT_UPDATE_FILES
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.

See also:
self::isValidUpdateFolders()

Prepare everything so it's ready for processing.

Returns:
bool success True if init went fine, False if an error occurred.

Reimplemented from TaskCopy.

Perform the actual steps of this task.

Reimplemented from CITask.


The documentation for this class was generated from the following file:
 All Classes Functions Variables