本文整理汇总了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.';
示例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.';