TYPO3 API  SVNRelease
Public Member Functions | Public Attributes | Protected Attributes
tx_lowlevel_cleaner_core Class Reference
Inheritance diagram for tx_lowlevel_cleaner_core:
Inheritance graph
[legend]
Collaboration diagram for tx_lowlevel_cleaner_core:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tx_lowlevel_cleaner_core ()
 cli_main ($argv)
 cli_referenceIndexCheck ()
 cli_noExecutionCheck ($matchString)
 cli_printInfo ($header, $res)
 genTree ($rootID, $depth=1000, $echoLevel=0, $callBack='')
 genTree_traverse ($rootID, $depth, $echoLevel=0, $callBack='', $versionSwapmode='', $rootIsVersion=0, $accumulatedPath='')
 infoStr ($rec)

Public Attributes

 $genTree_traverseDeleted = TRUE
 $genTree_traverseVersions = TRUE
 $label_infoString = 'The list of records is organized as [table]:[uid]:[field]:[flexpointer]:[softref_key]'
 $pagetreePlugins = array()
 $cleanerModules = array()
 $performanceStatistics = array()

Protected Attributes

 $workspaceIndex = array()

Detailed Description

Definition at line 68 of file class.tx_lowlevel_cleaner_core.php.


Member Function Documentation

tx_lowlevel_cleaner_core::cli_main ( argv)
tx_lowlevel_cleaner_core::cli_noExecutionCheck ( matchString)
tx_lowlevel_cleaner_core::cli_printInfo ( header,
res 
)

Formats a result array from a test so it fits output in the shell

Parameters:
stringname of the test (eg. function name)
arrayResult array from an analyze function
Returns:
void Outputs with echo - capture content with output buffer if needed.

Definition at line 252 of file class.tx_lowlevel_cleaner_core.php.

References $res, $value, t3lib_cli\cli_argValue(), t3lib_cli\cli_echo(), t3lib_cli\cli_isArg(), and t3lib_div\intInRange().

Referenced by cli_main().

tx_lowlevel_cleaner_core::cli_referenceIndexCheck ( )

Checks reference index

Returns:
boolean TRUE if reference index was OK (either OK, updated or ignored)

Definition at line 194 of file class.tx_lowlevel_cleaner_core.php.

References t3lib_cli\cli_echo(), t3lib_div\inList(), and t3lib_div\makeInstance().

tx_lowlevel_cleaner_core::genTree ( rootID,
depth = 1000,
echoLevel = 0,
callBack = '' 
)

Traverses the FULL/part of page tree, mainly to register ALL validly connected records (to find orphans) but also to register deleted records, versions etc. Output (in $this->recStats) can be useful for multiple purposes.

Parameters:
integerRoot page id from where to start traversal. Use "0" (zero) to have full page tree (necessary when spotting orphans, otherwise you can run it on parts only)
integerDepth to traverse. zero is do not traverse at all. 1 = 1 sublevel, 1000= 1000 sublevels (all...)
booleanIf >0, will echo information about the traversal process.
stringCall back function (from this class or subclass)
Returns:
void

Definition at line 332 of file class.tx_lowlevel_cleaner_core.php.

References $GLOBALS, t3lib_BEfunc\deleteClause(), genTree_traverse(), t3lib_extMgm\isLoaded(), and t3lib_div\milliseconds().

Referenced by tx_lowlevel_deleted\main(), tx_lowlevel_cleanflexform\main(), tx_lowlevel_versions\main(), and tx_lowlevel_orphan_records\main().

tx_lowlevel_cleaner_core::genTree_traverse ( rootID,
depth,
echoLevel = 0,
callBack = '',
versionSwapmode = '',
rootIsVersion = 0,
accumulatedPath = '' 
)

Recursive traversal of page tree:

Parameters:
integerPage root id (must be online, valid page record - or zero for page tree root)
integerDepth
integerEcho Level
stringCall back function (from this class or subclass)
stringDON'T set from outside, internal. (indicates we are inside a version of a page)
integerDON'T set from outside, internal. (1: Indicates that rootID is a version of a page, 2: ...that it is even a version of a version (which triggers a warning!)
stringInternal string that accumulates the path
Returns:
void private

Definition at line 410 of file class.tx_lowlevel_cleaner_core.php.

References $GLOBALS, $res, $row, t3lib_BEfunc\deleteClause(), t3lib_BEfunc\getRecordRaw(), t3lib_div\intInRange(), t3lib_div\milliseconds(), and t3lib_BEfunc\selectVersionsOfRecord().

Referenced by genTree().

tx_lowlevel_cleaner_core::infoStr ( rec)

Compile info-string

Parameters:
arrayInput record from sys_refindex
Returns:
string String identifying the main record of the reference

Definition at line 612 of file class.tx_lowlevel_cleaner_core.php.

Referenced by tx_lowlevel_double_files\main(), tx_lowlevel_rte_images\main(), tx_lowlevel_missing_files\main(), and tx_lowlevel_missing_relations\main().

tx_lowlevel_cleaner_core::tx_lowlevel_cleaner_core ( )

Member Data Documentation

tx_lowlevel_cleaner_core::$cleanerModules = array()

Definition at line 77 of file class.tx_lowlevel_cleaner_core.php.

Referenced by tx_lowlevel_rte_images\main().

tx_lowlevel_cleaner_core::$genTree_traverseDeleted = TRUE

Definition at line 70 of file class.tx_lowlevel_cleaner_core.php.

tx_lowlevel_cleaner_core::$genTree_traverseVersions = TRUE

Definition at line 71 of file class.tx_lowlevel_cleaner_core.php.

tx_lowlevel_cleaner_core::$label_infoString = 'The list of records is organized as [table]:[uid]:[field]:[flexpointer]:[softref_key]'

Definition at line 75 of file class.tx_lowlevel_cleaner_core.php.

tx_lowlevel_cleaner_core::$pagetreePlugins = array()

Definition at line 76 of file class.tx_lowlevel_cleaner_core.php.

tx_lowlevel_cleaner_core::$performanceStatistics = array()

Definition at line 79 of file class.tx_lowlevel_cleaner_core.php.

tx_lowlevel_cleaner_core::$workspaceIndex = array() [protected]

Definition at line 81 of file class.tx_lowlevel_cleaner_core.php.


The documentation for this class was generated from the following file: