当前位置: 首页>>代码示例>>PHP>>正文


PHP Schema::createFeatureTypeTables方法代码示例

本文整理汇总了PHP中Schema::createFeatureTypeTables方法的典型用法代码示例。如果您正苦于以下问题:PHP Schema::createFeatureTypeTables方法的具体用法?PHP Schema::createFeatureTypeTables怎么用?PHP Schema::createFeatureTypeTables使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Schema的用法示例。


在下文中一共展示了Schema::createFeatureTypeTables方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: strtolower

$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.';
开发者ID:pkorduan,项目名称:xmi2db,代码行数:31,代码来源:listAttributes.php

示例2: strtolower

$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.';
开发者ID:pkorduan,项目名称:xmi2db,代码行数:31,代码来源:db2classes.php


注:本文中的Schema::createFeatureTypeTables方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。