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

List of all members.

Public Member Functions

 __construct (&$CIFolder)
 run ()

Public Attributes

const TASK_LABEL = 'Valid filetypes'
const CONF_FILES_VALID = 'FILES_VALID'
const CONF_FILES_INVALID = 'FILES_INVALID'

Protected Member Functions

 loadSettings ()
 hasInvalidFiles ($CIFolder, $patterns)
 hasNonValidFiles ($CIFolder, $patterns)

Detailed Description

Checks if entries in this folder (files/subfolders) are valid or invalid, according to configuration options: CONF_FILES_VALID / CONF_FILES_INVALID

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

Member Function Documentation

TaskFilesValid::hasInvalidFiles ( CIFolder,
patterns 
) [protected]

Returns "true" if folder contains files matching patterns in 'FILES_INVALID'. False if not.

TaskFilesValid::hasNonValidFiles ( CIFolder,
patterns 
) [protected]

Returns "true" if folder contains files that do NOT match the patterns in 'FILES_VALID'. False if not.

Load settings from config that are relevant for this task.

Return values:
booleanTrue if everything went fine. False if not.

Reimplemented from CITask.

Perform the actual steps of this task.

  • Check for invalid files matching 'FILES_INVALID'
  • check for non-valid files not-matching 'FILES_VALID'

Reimplemented from CITask.


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