Ubiquity  2.0.2
php rapid development framework
ModelsCreator Class Reference
+ Inheritance diagram for ModelsCreator:

Public Member Functions

 create ($config, $initCache=true, $singleTable=null)
 

Protected Member Functions

 init ($config)
 
 createOneClass ($singleTable, $modelsDir)
 
 createRelations ()
 
 getTableName ($classname)
 
 createManyToMany ()
 
 getJoinTableArray (Model $class, JoinColumnAnnotation $joinColumn)
 
 getTablesName ()
 
 getFieldsInfos ($tableName)
 
 getPrimaryKeys ($tableName)
 
 writeFile ($filename, $data)
 

Protected Attributes

 $config
 
 $tables =array()
 
 $classes =array()
 

Detailed Description

Definition at line 10 of file ModelsCreator.php.

Member Function Documentation

◆ create()

create (   $config,
  $initCache = true,
  $singleTable = null 
)

Definition at line 19 of file ModelsCreator.php.

◆ createManyToMany()

createManyToMany ( )
protected

Definition at line 92 of file ModelsCreator.php.

◆ createOneClass()

createOneClass (   $singleTable,
  $modelsDir 
)
protected

Definition at line 56 of file ModelsCreator.php.

◆ createRelations()

createRelations ( )
protected

Definition at line 66 of file ModelsCreator.php.

◆ getFieldsInfos()

getFieldsInfos (   $tableName)
abstractprotected

◆ getJoinTableArray()

getJoinTableArray ( Model  $class,
JoinColumnAnnotation  $joinColumn 
)
protected

Definition at line 121 of file ModelsCreator.php.

◆ getPrimaryKeys()

getPrimaryKeys (   $tableName)
abstractprotected

◆ getTableName()

getTableName (   $classname)
protected

Definition at line 82 of file ModelsCreator.php.

◆ getTablesName()

getTablesName ( )
abstractprotected

◆ init()

init (   $config)
protected

Definition at line 15 of file ModelsCreator.php.

◆ writeFile()

writeFile (   $filename,
  $data 
)
protected

Definition at line 138 of file ModelsCreator.php.

Field Documentation

◆ $classes

$classes =array()
protected

Definition at line 13 of file ModelsCreator.php.

◆ $config

$config
protected

Definition at line 11 of file ModelsCreator.php.

◆ $tables

$tables =array()
protected

Definition at line 12 of file ModelsCreator.php.


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