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

Public Member Functions

 __construct ($model=null)
 
 initFromClass ()
 
 init ($metas)
 
 getTable ()
 
 generateSQL (DbGenerator $generator)
 
 scanManyToManys (DbGenerator $generator)
 
 addPrimaryKeys (DbGenerator $generator, array $primayKeys)
 
 getFieldAttributes (DbGenerator $generator, $field, $nullables, $fieldTypes, $forPk=false)
 

Protected Member Functions

 getSerializableFields ()
 
 generatePks (DbGenerator $generator, $primaryKeys, $table, $fieldTypes, $nullables)
 
 generateFieldsAttributes ($serializables, $fieldTypes, $nullables)
 
 _generateFieldAttributes ($field, $nullables, $fieldTypes)
 
 generateForeignKey (DbGenerator $generator, $tableName, $member)
 
 generateForeignKeys (DbGenerator $generator, $manyToOnes, $tableName)
 

Private Attributes

 $model
 
 $fkFieldsToAdd = []
 
 $fkFieldTypesToAdd = []
 
 $metas
 

Detailed Description

Definition at line 17 of file TableReversor.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $model = null)

Definition at line 27 of file TableReversor.php.

Member Function Documentation

◆ _generateFieldAttributes()

_generateFieldAttributes (   $field,
  $nullables,
  $fieldTypes 
)
protected

Definition at line 110 of file TableReversor.php.

◆ addPrimaryKeys()

addPrimaryKeys ( DbGenerator  $generator,
array  $primayKeys 
)

Definition at line 83 of file TableReversor.php.

◆ generateFieldsAttributes()

generateFieldsAttributes (   $serializables,
  $fieldTypes,
  $nullables 
)
protected

Definition at line 98 of file TableReversor.php.

◆ generateForeignKey()

generateForeignKey ( DbGenerator  $generator,
  $tableName,
  $member 
)
protected

Definition at line 122 of file TableReversor.php.

◆ generateForeignKeys()

generateForeignKeys ( DbGenerator  $generator,
  $manyToOnes,
  $tableName 
)
protected

Definition at line 135 of file TableReversor.php.

◆ generatePks()

generatePks ( DbGenerator  $generator,
  $primaryKeys,
  $table,
  $fieldTypes,
  $nullables 
)
protected

Definition at line 89 of file TableReversor.php.

◆ generateSQL()

generateSQL ( DbGenerator  $generator)

Definition at line 44 of file TableReversor.php.

◆ getFieldAttributes()

getFieldAttributes ( DbGenerator  $generator,
  $field,
  $nullables,
  $fieldTypes,
  $forPk = false 
)

Definition at line 106 of file TableReversor.php.

◆ getSerializableFields()

getSerializableFields ( )
protected

Definition at line 65 of file TableReversor.php.

◆ getTable()

getTable ( )

Definition at line 40 of file TableReversor.php.

◆ init()

init (   $metas)

Definition at line 36 of file TableReversor.php.

◆ initFromClass()

initFromClass ( )

Definition at line 31 of file TableReversor.php.

◆ scanManyToManys()

scanManyToManys ( DbGenerator  $generator)

Definition at line 71 of file TableReversor.php.

Field Documentation

◆ $fkFieldsToAdd

$fkFieldsToAdd = []
private

Definition at line 21 of file TableReversor.php.

◆ $fkFieldTypesToAdd

$fkFieldTypesToAdd = []
private

Definition at line 23 of file TableReversor.php.

◆ $metas

$metas
private

Definition at line 25 of file TableReversor.php.

◆ $model

$model
private

Definition at line 19 of file TableReversor.php.


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