Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ModelsCreator Class Reference
+ Inheritance diagram for ModelsCreator:

Public Member Functions

 create (array $config, bool $initCache=true, ?string $singleTable=null, string $offset='default', string $memberAccess='private')
 
 setSilent (bool $silent)
 

Protected Member Functions

 getTablesName ()
 
 getFieldsInfos ($tableName)
 
 getPrimaryKeys ($tableName)
 
 getForeignKeys ($tableName, $pkName, $dbName=null)
 
 init (array $config, string $offset='default')
 
 createOneClass (string $singleTable, string $modelsDir)
 
 createRelations ()
 
 getAlternateName (string $fkName, string $pkName)
 
 getTableName (string $classname)
 
 createManyToMany ()
 
 getJoinTableArray (Model $class, object $joinColumn)
 
 writeFile (string $filename, string $data)
 

Protected Attributes

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

Private Attributes

 $silent = false
 

Detailed Description

Definition at line 19 of file ModelsCreator.php.

Member Function Documentation

◆ create()

create ( array  $config,
bool  $initCache = true,
?string  $singleTable = null,
string  $offset = 'default',
string  $memberAccess = 'private' 
)

Definition at line 43 of file ModelsCreator.php.

◆ createManyToMany()

createManyToMany ( )
protected

Definition at line 155 of file ModelsCreator.php.

◆ createOneClass()

createOneClass ( string  $singleTable,
string  $modelsDir 
)
protected

Definition at line 102 of file ModelsCreator.php.

◆ createRelations()

createRelations ( )
protected

Definition at line 113 of file ModelsCreator.php.

◆ getAlternateName()

getAlternateName ( string  $fkName,
string  $pkName 
)
protected

Definition at line 129 of file ModelsCreator.php.

◆ getFieldsInfos()

getFieldsInfos (   $tableName)
abstractprotected

Reimplemented in DbModelsCreator, and YumlModelsCreator.

◆ getForeignKeys()

getForeignKeys (   $tableName,
  $pkName,
  $dbName = null 
)
abstractprotected

Reimplemented in DbModelsCreator, and YumlModelsCreator.

◆ getJoinTableArray()

getJoinTableArray ( Model  $class,
object  $joinColumn 
)
protected

Definition at line 189 of file ModelsCreator.php.

◆ getPrimaryKeys()

getPrimaryKeys (   $tableName)
abstractprotected

Reimplemented in DbModelsCreator, and YumlModelsCreator.

◆ getTableName()

getTableName ( string  $classname)
protected

Definition at line 144 of file ModelsCreator.php.

◆ getTablesName()

getTablesName ( )
abstractprotected

Reimplemented in DbModelsCreator, and YumlModelsCreator.

◆ init()

init ( array  $config,
string  $offset = 'default' 
)
protected

Definition at line 39 of file ModelsCreator.php.

◆ setSilent()

setSilent ( bool  $silent)
Parameters
boolean$silent

Definition at line 211 of file ModelsCreator.php.

◆ writeFile()

writeFile ( string  $filename,
string  $data 
)
protected

Definition at line 203 of file ModelsCreator.php.

Field Documentation

◆ $classes

$classes = array()
protected

Definition at line 27 of file ModelsCreator.php.

◆ $config

$config
protected

Definition at line 23 of file ModelsCreator.php.

◆ $memberAccess

$memberAccess
protected

Definition at line 29 of file ModelsCreator.php.

◆ $silent

$silent = false
private

Definition at line 21 of file ModelsCreator.php.

◆ $tables

$tables = array()
protected

Definition at line 25 of file ModelsCreator.php.


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