FOSSology  4.4.0
Open Source License Compliance by Open Source Software
SanityChecker Class Reference
Collaboration diagram for SanityChecker:
Collaboration graph

Public Member Functions

 __construct (&$dbManager, $verbose)
 
 check ()
 Check the sanity of decision, upload status, License Event types license_candidate table and ensures Top level folder for each user. More...
 

Protected Attributes

 $dbManager
 
 $verbose
 
 $errors = 0
 

Private Member Functions

 checkDecisionScopes ()
 Check if clearing_decision have proper values in scope and decision_type columns.
 
 checkUploadStatus ()
 Check if upload_clearing have proper values in status_fk column.
 
 checkLicenseEventTypes ()
 Check if clearing_event have proper values in type_fk column.
 
 checkDatabaseEnum ($tablename, $columnname, $map)
 Check if every values in given column are values from the given map. More...
 
 checkExistsTable ($tableName)
 

Detailed Description

of the database

Definition at line 23 of file sanity_check.php.

Member Function Documentation

◆ check()

SanityChecker::check ( )

Check the sanity of decision, upload status, License Event types license_candidate table and ensures Top level folder for each user.

Returns
int error code; 0 on success

Definition at line 44 of file sanity_check.php.

◆ checkDatabaseEnum()

SanityChecker::checkDatabaseEnum (   $tablename,
  $columnname,
  $map 
)
private

Check if every values in given column are values from the given map.

Parameters
string$tablenameTable in which the values have to be looked upon
string$columnnameName of column to check values
array$mapusing keys
Returns
int

Definition at line 96 of file sanity_check.php.

◆ checkExistsTable()

SanityChecker::checkExistsTable (   $tableName)
private

@biref Check if table exists in database

Parameters
string$tableNameName of table to be checked
Returns
int

Definition at line 124 of file sanity_check.php.


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