|
CInbox (Common-Inbox)
0.1
Common functionality for ingesting files for archiving.
|
Public Member Functions | |
| __construct (&$CIFolder) | |
| init () | |
| run () | |
Static Public Member Functions | |
| static | generateDirListArray ($folderName) |
Public Attributes | |
| const | TASK_LABEL = 'Directory listing (base)' |
| const | ONCE_PER_ITEM = true |
| True: Run this task only once per item. | |
| const | CONF_DIRLIST_FILE = 'DIRLIST_FILE' |
Protected Member Functions | |
| loadSettings () | |
| saveToFile ($fileName) | |
Protected Attributes | |
| $tempFile | |
| $dirListFilename | |
| $dirListFile | |
| $dirList | |
| $dirListing | |
Base class for preparing a directory listing.
| static TaskDirListing::generateDirListArray | ( | $ | folderName | ) | [static] |
Traverses the directory structure starting in '$folderName', and returns an array, alphabetically sorted by filename, that contains key=filename, value=SplFileInfo Object.
Prepare everything so it's ready for processing.
| boolean | True if task shall proceed. False if not. |
Reimplemented from CITask.
| TaskDirListing::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.
| boolean | True if task shall proceed. False if not. |
Reimplemented from CITask.
Reimplemented in TaskDirListCSV.
| TaskDirListing::saveToFile | ( | $ | fileName | ) | [protected] |
Writes the contents of $this->dirListing into a file. It will not overwrite an existing file.
1.7.6.1