コード例 #1
0
 protected function setTables()
 {
     $this->tables = array();
     foreach ($this->userDataModel->Tables as $table) {
         $this->tables[$table->Name] = DataManagementService::GetTableMeta($table->DatabaseConnectionInfoId, $table->SchemaName, $table->Name);
     }
 }
コード例 #2
0
 public function generate($modelName)
 {
     /*
         $userSettings = DataManagementService::GetSettings();
         $userDataModel = $userSettings->GetModel( $modelName );
         $codegenResult = null;
     
         $codegen = new WDMCodegenerator();
         $nameMapper = new NameMapper( $userSettings, $userDataModel );
     
     $serverType = $userDataModel->getServerConnection()->Connection->Type;
     $metaData = WDMMetaInspectorFactory::getInspector($serverType);
     $metaData->initialize($userDataModel, $nameMapper);
     $codegen->setMeta($metaData);
     
     $codegenResult = $codegen->Generate();
     $userDataModel->LOC = $codegenResult->LineCount;
     CreateArc::createArchive($codegenResult, $modelName . ".zip", "weborbassets" . DIRECTORY_SEPARATOR . "wdm" . DIRECTORY_SEPARATOR . "output", "weborbassets" . DIRECTORY_SEPARATOR . "wdm" );
     return $userDataModel->LOC;
     */
     $wdmService = new DataManagementService();
     return $wdmService->Generate($modelName);
 }