DatabaseIntegrityCheck
This class holds functions used by the TYPO3 backend for the RecordStatistics Service of the database.
not part of TYPO3 Core API
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
- $lRecords : array<string|int, mixed>
- $pageIdArray : array<string|int, mixed>
- $pageTranslatedPageIDArray : array<string|int, mixed>
- $recStats : array<string|int, mixed>
- $tcaSchemaFactory : TcaSchemaFactory
Methods
- __construct() : mixed
- countRecords() : array<string|int, mixed>
- Counts records from $GLOBALS['TCA']-tables that ARE attached to an existing page.
- genTree() : void
- Generates a list of Page-uid's that corresponds to the tables in the tree.
- getPageIdArray() : array<string|int, mixed>
- getPageTranslatedPageIDArray() : array<string|int, mixed>
- getRecStats() : array<string|int, mixed>
- lostRecords() : array<string|int, mixed>
- Fills $this->lRecords with the records from all tc-tables that are not attached to a PID in the pid-list.
Properties
$lRecords
protected
array<string|int, mixed>
$lRecords
= []
$pageIdArray
protected
array<string|int, mixed>
$pageIdArray
= []
Will hold id/rec pairs from genTree()
$pageTranslatedPageIDArray
protected
array<string|int, mixed>
$pageTranslatedPageIDArray
= []
Will hold id/rec pairs from genTree() that are not default language
$recStats
protected
array<string|int, mixed>
$recStats
= ['all_valid' => [], 'published_versions' => [], 'deleted' => []]
$tcaSchemaFactory read-only
protected
TcaSchemaFactory
$tcaSchemaFactory
Methods
__construct()
public
__construct(TcaSchemaFactory $tcaSchemaFactory) : mixed
Parameters
- $tcaSchemaFactory : TcaSchemaFactory
countRecords()
Counts records from $GLOBALS['TCA']-tables that ARE attached to an existing page.
public
countRecords(array<string|int, mixed> $pageIds) : array<string|int, mixed>
Parameters
- $pageIds : array<string|int, mixed>
-
list of pid's (page-record uid's). This list is probably made by genTree()
Return values
array<string|int, mixed> —an array with the number of records from all $GLOBALS['TCA']-tables that are attached to a PID in the pid-list.
genTree()
Generates a list of Page-uid's that corresponds to the tables in the tree.
public
genTree(int $theID[, bool $versions = false ]) : void
This list should ideally include all records in the pages-table.
Parameters
- $theID : int
-
a pid (page-record id) from which to start making the tree
- $versions : bool = false
-
Internal variable, don't set from outside!
getPageIdArray()
public
getPageIdArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getPageTranslatedPageIDArray()
public
getPageTranslatedPageIDArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getRecStats()
public
getRecStats() : array<string|int, mixed>
Return values
array<string|int, mixed>lostRecords()
Fills $this->lRecords with the records from all tc-tables that are not attached to a PID in the pid-list.
public
lostRecords(array<string|int, mixed> $pageIds) : array<string|int, mixed>
Parameters
- $pageIds : array<string|int, mixed>
-
list of pid's (page-record uid's). This list is probably made by genTree()