Ubiquity  2.0.3
php rapid development framework
YumlParser Class Reference

Public Member Functions

 __construct ($yumlString)
 
 getFirstKey ($table)
 
 getFieldType ($table, $fieldName)
 
 getPrimaryKeys ($table)
 
 getParts ()
 
 getTables ()
 
 getTableNames ()
 
 getFields ($table)
 
 getForeignKeys ($table)
 

Data Fields

 null => "«null»" ]
 

Private Member Functions

 getFkName ($table, $prefix="id")
 
 parse ()
 
 parsePart ($part)
 
 parseAllProperties ()
 
 parseProperties ($propertiesString, $table)
 
 parseProperty ($property)
 
 parseRelations ($table)
 
 _parseRelations ($table, $matches)
 
 parseManyRelations ($table)
 
 _parseManyRelations ($table, $matches)
 

Private Attributes

 $stereotypes = [ "pk" => "«pk»"
 
 $defaultType = "varchar(30)"
 
 $originalString
 
 $parts
 
 $tables = [ ]
 

Detailed Description

Definition at line 5 of file YumlParser.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $yumlString)

Definition at line 12 of file YumlParser.php.

Member Function Documentation

◆ _parseManyRelations()

_parseManyRelations (   $table,
  $matches 
)
private

Definition at line 154 of file YumlParser.php.

◆ _parseRelations()

_parseRelations (   $table,
  $matches 
)
private

Definition at line 135 of file YumlParser.php.

◆ getFields()

getFields (   $table)

Definition at line 188 of file YumlParser.php.

◆ getFieldType()

getFieldType (   $table,
  $fieldName 
)

Definition at line 110 of file YumlParser.php.

◆ getFirstKey()

getFirstKey (   $table)

Definition at line 99 of file YumlParser.php.

◆ getFkName()

getFkName (   $table,
  $prefix = "id" 
)
private

Definition at line 17 of file YumlParser.php.

◆ getForeignKeys()

getForeignKeys (   $table)

Definition at line 192 of file YumlParser.php.

◆ getParts()

getParts ( )

Definition at line 176 of file YumlParser.php.

◆ getPrimaryKeys()

getPrimaryKeys (   $table)

Definition at line 118 of file YumlParser.php.

◆ getTableNames()

getTableNames ( )

Definition at line 184 of file YumlParser.php.

◆ getTables()

getTables ( )

Definition at line 180 of file YumlParser.php.

◆ parse()

parse ( )
private

Definition at line 21 of file YumlParser.php.

◆ parseAllProperties()

parseAllProperties ( )
private

Definition at line 41 of file YumlParser.php.

◆ parseManyRelations()

parseManyRelations (   $table)
private

Definition at line 148 of file YumlParser.php.

◆ parsePart()

parsePart (   $part)
private

Definition at line 30 of file YumlParser.php.

◆ parseProperties()

parseProperties (   $propertiesString,
  $table 
)
private

Definition at line 59 of file YumlParser.php.

◆ parseProperty()

parseProperty (   $property)
private

Definition at line 69 of file YumlParser.php.

◆ parseRelations()

parseRelations (   $table)
private

Definition at line 127 of file YumlParser.php.

Field Documentation

◆ $defaultType

$defaultType = "varchar(30)"
private

Definition at line 7 of file YumlParser.php.

◆ $originalString

$originalString
private

Definition at line 8 of file YumlParser.php.

◆ $parts

$parts
private

Definition at line 9 of file YumlParser.php.

◆ $stereotypes

$stereotypes = [ "pk" => "«pk»"
private

Definition at line 6 of file YumlParser.php.

◆ $tables

$tables = [ ]
private

Definition at line 10 of file YumlParser.php.

◆ null

null => "«null»" ]

Definition at line 6 of file YumlParser.php.


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