Ubiquity  2.0.0
php rapid development framework
DbModelsCreator Class Reference
+ Inheritance diagram for DbModelsCreator:

Protected Member Functions

 init ($config)
 
 getTablesName ()
 
 getFieldsInfos ($tableName)
 
 getPrimaryKeys ($tableName)
 
 getForeignKeys ($tableName, $pkName)
 
- Protected Member Functions inherited from ModelsCreator
 init ($config)
 
 createOneClass ($singleTable, $modelsDir)
 
 createRelations ()
 
 getTableName ($classname)
 
 createManyToMany ()
 
 getJoinTableArray (Model $class, JoinColumnAnnotation $joinColumn)
 
 getTablesName ()
 
 getFieldsInfos ($tableName)
 
 getPrimaryKeys ($tableName)
 
 writeFile ($filename, $data)
 

Private Member Functions

 connect ($config)
 Réalise la connexion à la base de données. More...
 

Private Attributes

 $pdoObject
 

Additional Inherited Members

- Public Member Functions inherited from ModelsCreator
 create ($config, $initCache=true, $singleTable=null)
 
- Protected Attributes inherited from ModelsCreator
 $config
 
 $tables =array()
 
 $classes =array()
 

Detailed Description

Definition at line 7 of file DbModelsCreator.php.

Member Function Documentation

◆ connect()

connect (   $config)
private

Réalise la connexion à la base de données.

Definition at line 17 of file DbModelsCreator.php.

◆ getFieldsInfos()

getFieldsInfos (   $tableName)
protected

Definition at line 38 of file DbModelsCreator.php.

◆ getForeignKeys()

getForeignKeys (   $tableName,
  $pkName 
)
protected

Definition at line 58 of file DbModelsCreator.php.

◆ getPrimaryKeys()

getPrimaryKeys (   $tableName)
protected

Definition at line 48 of file DbModelsCreator.php.

◆ getTablesName()

getTablesName ( )
protected

Definition at line 32 of file DbModelsCreator.php.

◆ init()

init (   $config)
protected

Definition at line 10 of file DbModelsCreator.php.

Field Documentation

◆ $pdoObject

$pdoObject
private

Definition at line 8 of file DbModelsCreator.php.


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