static execute |
( |
& |
$messages, |
|
|
& |
$errors |
|
) |
| |
|
static |
execute Finds assets that have a directory in data/file_repository but don't exist in data/private/ (somewhere)
Then makes sure each of those assets exist If they don't, then the data/file_repository location is cleaned up and then clean up sq_file_vers_* tables
- Parameters
-
Array | $messages | An array of messages. Passed in by reference. |
Array | $errors | An array of error messages. These are shown when the parent script is run in –verbose mode. |
- Returns
- boolean Returns true if everything is ok (or there's nothing to do), otherwise false.
get file id's to delete so we can delete from sq_file_vers_file and _history at the same time.
Definition at line 176 of file test_dead_file_revisions.inc.
static getDescription |
( |
| ) |
|
|
static |
static test |
( |
& |
$messages, |
|
|
& |
$errors |
|
) |
| |
|
static |
The test to run. This will only tell you whether there is anything that needs cleaning up It will not actually do anything.
- Parameters
-
array | $messages | The variable to 'chuck' all the messages |
array | $errors | The variable to 'chuck' all the verbose messages |
- Returns
- boolean|int public
Definition at line 300 of file test_dead_file_revisions.inc.
Array of bottom level directories that will be checked to see if they can be emptied and removed.
- See Also
- getAssetDirs
Definition at line 38 of file test_dead_file_revisions.inc.
The documentation for this class was generated from the following file: