Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Test_Dead_File_Revisions Class Reference

Static Public Member Functions

static getName ()
 
static getDescription ()
 
static execute (&$messages, &$errors)
 
static test (&$messages, &$errors)
 

Static Public Attributes

static $dirList = Array()
 

Detailed Description

Definition at line 28 of file test_dead_file_revisions.inc.

Member Function Documentation

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$messagesAn array of messages. Passed in by reference.
Array$errorsAn 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

Return a description of this test

Returns
string public

Definition at line 59 of file test_dead_file_revisions.inc.

static getName ( )
static

Return the name of this test

Returns
string public

Definition at line 46 of file test_dead_file_revisions.inc.

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$messagesThe variable to 'chuck' all the messages
array$errorsThe variable to 'chuck' all the verbose messages
Returns
boolean|int public

Definition at line 300 of file test_dead_file_revisions.inc.

Field Documentation

$dirList = Array()
static

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: