|
|
const | TASK_LABEL = 'Matching filenames (abstract)' |
| |
|
const | STATUS_UNDEFINED = 0 |
| | Undefined. Default unless task changes it.
|
| |
|
const | STATUS_RUNNING = 1 |
| | Undefined, but indicates that the task is in progress.
|
| |
|
const | STATUS_WAIT = 2 |
| | Task decided that Item is not ready yet and shall be moved back to 'to-do'.
|
| |
|
const | STATUS_DONE = 5 |
| | Success! This means the task completed successfully.
|
| |
|
const | STATUS_PBCT = 6 |
| | There were problems, but the task may continue.
|
| |
|
const | STATUS_PBC = 7 |
| | There were problems, but subsequent task may continue.
|
| |
|
const | STATUS_ERROR = 10 |
| | An error occurred. Abort execution as soon as possible.
|
| |
|
const | STATUS_CONFIG_ERROR = 11 |
| | If a config option was not valid.
|
| |
|
const | STATUS_SKIPPED = 15 |
| | If task was skipped.
|
| |
|
const | ONCE_PER_ITEM = false |
| | True: Run this task only once per item.
|
| |
|
const | IS_RECURSIVE = false |
| | Default (false): one task = one folder. True: The task performs actions on subfolders too.
|
| |
|
const | CONF_COPY_EXCLUDE = 'COPY_EXCLUDE' |
| | Patterns which files to exclude from copying.
|
| |
|
const | MASK_TARGET_TEMP = 'temp_%s' |
| |
Checks if entries in this folder (files/subfolders) exist, according to a given glob pattern.
This class is abstract and should be used as parent class for tasks that require checking existence of certain files.
- Author
- Peter Bubestinger-Steindl (pb@av.nosp@m.-rd..nosp@m.com)
- Copyright
- Copyright 2018 AV-RD e.U. (License: GNU General Public License (v3))
- See also
-
| TaskFilesMatch::getMatchingFiles |
( |
|
$CIFolder, |
|
|
|
$patterns |
|
) |
| |
|
protected |
Returns array with files/folders within the folder that match the glob patterns in '$patterns'.
| TaskFilesMatch::getNonMatchingFiles |
( |
|
$CIFolder, |
|
|
|
$patterns |
|
) |
| |
|
protected |
Returns array with files/folders within the folder that do not match the glob patterns in '$patterns'.
| TaskFilesMatch::hasMissingFiles |
( |
|
$CIFolder, |
|
|
|
$patterns |
|
) |
| |
|
protected |
Checks for missing entries of files/folders in $CIFolder defined by $patterns.
- Return values
-
| integer | Returns the number of files missing. |
| boolean | If $pattern is empty, False is returned. |
Prepare everything so it's ready for processing.
The documentation for this class was generated from the following file:
- /media/storage_1tb/storage/F_Drive/JobsToDo/Das-Firma/owncloud/Development/src-repositories/avrd.git/projects/cinbox/bin/tasks/TaskFilesMatch.php