|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| Foreign_Key_Integrity_Check () | |
| tables () | |
| columns ($table) | |
| fks ($table) | |
| load () | |
| checkDatabase () | |
| checkTable ($table) | |
| printTable ($table) | |
| printColumn ($table, $column, $count) | |
| printResult ($assetids) | |
Data Fields | |
| $fks | |
| $tables = Array() | |
Definition at line 55 of file system_integrity_foreign_keys.php.
| checkDatabase | ( | ) |
Performs the foreign key integrity check on the database
Definition at line 275 of file system_integrity_foreign_keys.php.
| checkTable | ( | $table | ) |
Peforms a foreign key integrity check on the specified table
| string | $table | the name of the table to perform the check on |
Definition at line 298 of file system_integrity_foreign_keys.php.
| columns | ( | $table | ) |
Given the name of a table, return all it's columns
| string | $table | the name of the table to get the columns of |
Definition at line 168 of file system_integrity_foreign_keys.php.
| fks | ( | $table | ) |
Returns the foreign keys for a given table
| string | $table | the name of the table to get fks for |
Definition at line 207 of file system_integrity_foreign_keys.php.
| load | ( | ) |
Normal stuff we need to get ready before we do anything else
Definition at line 236 of file system_integrity_foreign_keys.php.
| printColumn | ( | $table, | |
| $column, | |||
| $count | |||
| ) |
Print information on the column (read foreign key) currently being checked
| string | $table | the current table being checked |
| string | $column | the current column being checked |
| int | $count | the number of bad foreign keys found for table/column |
Definition at line 378 of file system_integrity_foreign_keys.php.
| printResult | ( | $assetids | ) |
Print information on which values for the foreign key are broken
| array | $assetids | an array of values for the incorrect foreign keys |
Definition at line 398 of file system_integrity_foreign_keys.php.
| printTable | ( | $table | ) |
Print information on the table that is being processed/checked
| string | $table | the name of the table being processed/checked |
Definition at line 361 of file system_integrity_foreign_keys.php.
| tables | ( | ) |
Get all of the tables from the database
Definition at line 153 of file system_integrity_foreign_keys.php.