|
TYPO3 API
SVNRelease
|


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() | |
Definition at line 68 of file class.tx_lowlevel_cleaner_core.php.
| tx_lowlevel_cleaner_core::cli_main | ( | $ | argv | ) |
CLI engine
| array | Command line arguments |
Definition at line 135 of file class.tx_lowlevel_cleaner_core.php.
References $GLOBALS, $res, t3lib_cli\cli_echo(), t3lib_cli\cli_help(), t3lib_cli\cli_isArg(), t3lib_cli\cli_keyboardInput_yes(), cli_printInfo(), t3lib_cli\cli_validateArgs(), t3lib_extMgm\extPath(), and t3lib_div\getUserObj().
| tx_lowlevel_cleaner_core::cli_noExecutionCheck | ( | $ | matchString | ) |
| [type] | $matchString: ... |
Definition at line 229 of file class.tx_lowlevel_cleaner_core.php.
References t3lib_cli\cli_argValue(), t3lib_cli\cli_isArg(), and t3lib_cli\cli_keyboardInput_yes().
Referenced by tx_lowlevel_deleted\main_autoFix(), tx_lowlevel_orphan_records\main_autoFix(), tx_lowlevel_cleanflexform\main_autoFix(), tx_lowlevel_missing_files\main_autoFix(), tx_lowlevel_missing_relations\main_autoFix(), tx_lowlevel_double_files\main_autoFix(), tx_lowlevel_rte_images\main_autoFix(), tx_lowlevel_lost_files\main_autoFix(), and tx_lowlevel_versions\main_autoFix().
| tx_lowlevel_cleaner_core::cli_printInfo | ( | $ | header, |
| $ | res | ||
| ) |
Formats a result array from a test so it fits output in the shell
| string | name of the test (eg. function name) |
| array | Result array from an analyze function |
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
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.
| integer | Root 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) |
| integer | Depth to traverse. zero is do not traverse at all. 1 = 1 sublevel, 1000= 1000 sublevels (all...) |
| boolean | If >0, will echo information about the traversal process. |
| string | Call back function (from this class or subclass) |
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:
| integer | Page root id (must be online, valid page record - or zero for page tree root) |
| integer | Depth |
| integer | Echo Level |
| string | Call back function (from this class or subclass) |
| string | DON'T set from outside, internal. (indicates we are inside a version of a page) |
| integer | DON'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!) |
| string | Internal string that accumulates the path |
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
| array | Input record from sys_refindex |
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 | ( | ) |
Constructor
Definition at line 89 of file class.tx_lowlevel_cleaner_core.php.
References $GLOBALS, t3lib_cli\cli_help(), and t3lib_cli\t3lib_cli().
Referenced by tx_lowlevel_cleanflexform\tx_lowlevel_cleanflexform(), tx_lowlevel_syslog\tx_lowlevel_cleanflexform(), tx_lowlevel_deleted\tx_lowlevel_deleted(), tx_lowlevel_double_files\tx_lowlevel_double_files(), tx_lowlevel_lost_files\tx_lowlevel_lost_files(), tx_lowlevel_missing_files\tx_lowlevel_missing_files(), tx_lowlevel_missing_relations\tx_lowlevel_missing_relations(), tx_lowlevel_orphan_records\tx_lowlevel_orphan_records(), tx_lowlevel_rte_images\tx_lowlevel_rte_images(), and tx_lowlevel_versions\tx_lowlevel_versions().
| 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.
1.7.5.1