PHP Method Schema::createFeatureTypeTables, someline-starter Code Examples

This page contains top rated real world PHP examples of method Schema::createFeatureTypeTables from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples
Frequently Used Methods
Example #1
Show file File: listAttributes.php Project: pkorduan/xmi2db
0
$topDataTypes = $umlSchema->getTopUmlClasses('DataType');
# Für alle oberen Datentypen
foreach ($topDataTypes as $topDataType) {
    $umlSchema->logger->log('<br><b>Top DataType: ' . $topDataType['name'] . '</b> (' . $topDataType['xmi_id'] . ')');
    $sql .= $umlSchema->createComplexDataTypes('DataType', $topDataType, $gmlSchema);
}
$logger->log('<br><hr><br>');
#**************
# FeatureTypes
#**************
# Lade oberste Klassen vom Typ FeatureType, die von keinen anderen abgeleitet wurden
$topClasses = $umlSchema->getTopUmlClasses('FeatureType');
# Für alle oberen Klassen
foreach ($topClasses as $topClass) {
    $umlSchema->logger->log('<br><b>TopKlasse: ' . $topClass['name'] . '</b> (' . $topClass['xmi_id'] . ')');
    $sql .= $umlSchema->createFeatureTypeTables('FeatureType', null, $topClass);
}
$logger->log('<br><hr><br>');
#******************
# n:m Associations
#******************
# Lade n:m Associations
$associations = $umlSchema->getAssociations();
foreach ($associations as $association) {
    $text = '<br><b>Association: ' . $association['assoc_id'] . '</b><br>' . $association['a_class'] . ' hat ' . $association['a_num'] . ' ' . $association['b_class'] . ' über ' . $association['a_rel'] . '<br>';
    if ($association['b_rel'] != '') {
        $text .= $association['b_class'] . ' hat ' . $association['b_num'] . ' ' . $association['b_rel'];
    }
    if ($association['a_num'] == 'n' and $association['b_num'] == 'n') {
        $assoc_table = strtolower($association['a_class'] . '2' . $association['b_class']);
        $text .= '<br>Lege n:m Tabelle ' . $assoc_table . ' an.';
Example #2
Show file File: db2classes.php Project: pkorduan/xmi2db
0
$topDataTypes = $umlSchema->getTopUmlClasses('DataType');
# Für alle oberen Datentypen
foreach ($topDataTypes as $topDataType) {
    $umlSchema->logger->log('<br><b>Top DataType: ' . $topDataType['name'] . '</b> (' . $topDataType['xmi_id'] . ')');
    $sql .= $umlSchema->createComplexDataTypes('DataType', $topDataType, $gmlSchema);
}
$logger->log('<br><hr><br>');
#**************
# FeatureTypes
#**************
# Lade oberste Klassen vom Typ FeatureType, die von keinen anderen abgeleitet wurden
$topClasses = $umlSchema->getTopUmlClasses('FeatureType');
# Für alle oberen Klassen
foreach ($topClasses as $topClass) {
    $umlSchema->logger->log('<br><b>TopKlasse: ' . $topClass['name'] . '</b> (' . $topClass['xmi_id'] . ')');
    $sql .= $umlSchema->createFeatureTypeTables('FeatureType', null, $topClass, '', $_REQUEST['createUserInfoColumns'] == 1 ? true : false);
}
$logger->log('<br><hr><br>');
#******************
# n:m Associations
#******************
# Lade n:m Associations
$associations = $umlSchema->getAssociations();
foreach ($associations as $association) {
    $text = '<br><b>Association: ' . $association['assoc_id'] . '</b><br>' . $association['a_class'] . ' hat ' . $association['a_num'] . ' ' . $association['b_class'] . ' über ' . $association['a_rel'] . '<br>';
    if ($association['b_rel'] != '') {
        $text .= $association['b_class'] . ' hat ' . $association['b_num'] . ' ' . $association['b_rel'];
    }
    if ($association['a_num'] == 'n' and $association['b_num'] == 'n') {
        $assoc_table = strtolower($association['a_class'] . '_zu_' . $association['b_class']);
        $text .= '<br>Lege n:m Tabelle ' . $assoc_table . ' an.';