本文整理汇总了PHP中Schema::getTopUmlClasses方法的典型用法代码示例。如果您正苦于以下问题:PHP Schema::getTopUmlClasses方法的具体用法?PHP Schema::getTopUmlClasses怎么用?PHP Schema::getTopUmlClasses使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schema
的用法示例。
在下文中一共展示了Schema::getTopUmlClasses方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Logger
$logger = new Logger(LOGLEVEL);
#*****************************************************************************
#
#*****************************************************************************
# Initialize the umlSchema object
$umlSchema = new Schema(UML_SCHEMA, $logger);
$umlSchema->openConnection(PG_HOST, PG_DBNAME, PG_USER, PG_PASSWORD);
# Initialize the gmlSchema object
$ogrSchema = new OgrSchema(OGR_SCHEMA, $logger);
$ogrSchema->umlSchema = $umlSchema;
$sql = $ogrSchema->asSql();
#**************
# 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) {
$ogrSchema->listFeatureTypesAttributes('FeatureType', null, $topClass, false);
}
# Sortiere Ausgabeliste
ksort($ogrSchema->renameList);
header('Content-Type: application/json');
$json = '{';
$firstline = true;
foreach ($ogrSchema->renameList as $key => $value) {
if ($firstline) {
$firstline = false;
} else {
$json .= ',';
}
示例2: array
$sql .= $umlSchema->createEnumerationTable($enumeration, $gmlSchema);
}
$logger->log('<br><hr><br>');
#***********
# CodeLists
#***********
# Lade CodeLists
foreach ($umlSchema->getCodeLists() as $code_list) {
$sql .= $umlSchema->createCodeListTable($code_list);
}
$logger->log('<br><hr><br>');
#***********
# Unions
#***********
# Lade oberste Klassen vom Typ Union
$topDataTypes = $umlSchema->getTopUmlClasses('Union');
# Für alle oberen Unions
foreach ($topDataTypes as $topDataType) {
$umlSchema->logger->log('<br><b>Top UnionType: ' . $topDataType['name'] . '</b> (' . $topDataType['xmi_id'] . ')');
$sql .= $umlSchema->createComplexDataTypes('Union', $topDataType, $gmlSchema);
}
$logger->log('<br><hr><br>');
#********************************************
# Create DataTypes not definend in UML-Model
#********************************************
$sql .= $umlSchema->createExternalDataTypes($gmlSchema);
$logger->log('<br><hr><br>');
#***********
# DataTypes
#***********
$dataTypes = array();