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

List of all members.

Public Member Functions

 __construct (&$CIFolder)
 init ()
 run ()
 finalize ()

Public Attributes

const TASK_LABEL = 'Validate target hashcodes'

Protected Member Functions

 checkTarget ($sourceFolder, $targetFolder)

Detailed Description

Validates hashcodes of the target files by comparing them to the ones in temp-folder. This requires the Task 'HashGenerate' to be run before this one.

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

Member Function Documentation

Actions to be performed *after* run() finished successfully;

Reimplemented from CITask.

Prepare everything so it's ready for processing.

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

Reimplemented from CITask.

Perform the actual steps of this task.

IMPORTANT: This task must be run *before* TaskRenameTarget, because if validation fails, after renaming, the Item cannot easily be reset, without deleting the target-leftovers... Therefore we use "targetFolderTemp".

See also:
$this->resolveTargetFolderTemp()

Reimplemented from CITask.


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