Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DatabaseChecker Class Reference

Public Member Functions

 __construct (string $dbOffset='default')
 
 checkDatabase ()
 
 getNonExistingTables ()
 
 tableExists (string $table)
 
 checkAll ()
 
 hasErrors ()
 
 getResultDatabaseNotExist ()
 
 getResultNonExistingTables ()
 
 getResultUpdatedFields ()
 
 getResultPrimaryKeys ()
 
 getResultManyToOne ()
 
 getResultManyToMany ()
 
 getUpdatedFields (string $model)
 
 concatArrayKeyValue (array $array, callable $callable, string $sep=',')
 
 checkPrimaryKeys (string $model)
 
 checkManyToOne (string $model)
 
 checkManyToMany (string $model)
 
 getDb ()
 
 displayAll (callable $displayCallable)
 

Private Member Functions

 _getNonExistingTables ()
 
 checkFk ($table, $fkField, $fkTable, $fkId)
 

Private Attributes

string $dbOffset
 
 $databaseExist
 
Database $db
 
array $models = null
 
array $metadatas = null
 
array $nonExistingTables = null
 
array $checkResults = null
 

Detailed Description

Definition at line 21 of file DatabaseChecker.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $dbOffset = 'default')

Definition at line 37 of file DatabaseChecker.php.

Member Function Documentation

◆ _getNonExistingTables()

_getNonExistingTables ( )
private

Definition at line 71 of file DatabaseChecker.php.

◆ checkAll()

checkAll ( )

Definition at line 79 of file DatabaseChecker.php.

◆ checkDatabase()

checkDatabase ( )

Definition at line 45 of file DatabaseChecker.php.

◆ checkFk()

checkFk (   $table,
  $fkField,
  $fkTable,
  $fkId 
)
private

Definition at line 227 of file DatabaseChecker.php.

◆ checkManyToMany()

checkManyToMany ( string  $model)

Definition at line 251 of file DatabaseChecker.php.

◆ checkManyToOne()

checkManyToOne ( string  $model)

Definition at line 208 of file DatabaseChecker.php.

◆ checkPrimaryKeys()

checkPrimaryKeys ( string  $model)

Definition at line 184 of file DatabaseChecker.php.

◆ concatArrayKeyValue()

concatArrayKeyValue ( array  $array,
callable  $callable,
string  $sep = ',' 
)

Definition at line 176 of file DatabaseChecker.php.

◆ displayAll()

displayAll ( callable  $displayCallable)

Definition at line 280 of file DatabaseChecker.php.

◆ getDb()

getDb ( )
Returns
Database

Definition at line 276 of file DatabaseChecker.php.

◆ getNonExistingTables()

getNonExistingTables ( )

Definition at line 54 of file DatabaseChecker.php.

◆ getResultDatabaseNotExist()

getResultDatabaseNotExist ( )

Definition at line 117 of file DatabaseChecker.php.

◆ getResultManyToMany()

getResultManyToMany ( )

Definition at line 137 of file DatabaseChecker.php.

◆ getResultManyToOne()

getResultManyToOne ( )

Definition at line 133 of file DatabaseChecker.php.

◆ getResultNonExistingTables()

getResultNonExistingTables ( )

Definition at line 121 of file DatabaseChecker.php.

◆ getResultPrimaryKeys()

getResultPrimaryKeys ( )

Definition at line 129 of file DatabaseChecker.php.

◆ getResultUpdatedFields()

getResultUpdatedFields ( )

Definition at line 125 of file DatabaseChecker.php.

◆ getUpdatedFields()

getUpdatedFields ( string  $model)

Definition at line 141 of file DatabaseChecker.php.

◆ hasErrors()

hasErrors ( )

Definition at line 109 of file DatabaseChecker.php.

◆ tableExists()

tableExists ( string  $table)

Definition at line 75 of file DatabaseChecker.php.

Field Documentation

◆ $checkResults

array $checkResults = null
private

Definition at line 35 of file DatabaseChecker.php.

◆ $databaseExist

$databaseExist
private

Definition at line 25 of file DatabaseChecker.php.

◆ $db

Database $db
private

Definition at line 27 of file DatabaseChecker.php.

◆ $dbOffset

string $dbOffset
private

Definition at line 23 of file DatabaseChecker.php.

◆ $metadatas

array $metadatas = null
private

Definition at line 31 of file DatabaseChecker.php.

◆ $models

array $models = null
private

Definition at line 29 of file DatabaseChecker.php.

◆ $nonExistingTables

array $nonExistingTables = null
private

Definition at line 33 of file DatabaseChecker.php.


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