|
CInbox (Common-Inbox)
0.1
Common functionality for ingesting files for archiving.
|
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) | |
Checks if entries in this folder (files/subfolders) are valid or invalid, according to configuration options: CONF_FILES_VALID / CONF_FILES_INVALID
| 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.
| TaskFilesValid::loadSettings | ( | ) | [protected] |
Load settings from config that are relevant for this task.
| boolean | True if everything went fine. False if not. |
Reimplemented from CITask.
Perform the actual steps of this task.
Reimplemented from CITask.
1.7.6.1