當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Doctrine_Core::generateYamlFromDb方法代碼示例

本文整理匯總了PHP中Doctrine_Core::generateYamlFromDb方法的典型用法代碼示例。如果您正苦於以下問題:PHP Doctrine_Core::generateYamlFromDb方法的具體用法?PHP Doctrine_Core::generateYamlFromDb怎麽用?PHP Doctrine_Core::generateYamlFromDb使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Doctrine_Core的用法示例。


在下文中一共展示了Doctrine_Core::generateYamlFromDb方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: generateYamlFromDb

 private function generateYamlFromDb()
 {
     $con_name = $this->getArgumentsvalue('connection-name');
     if ($con_name === '{default}') {
         $con_name = $this->Con->getName();
     }
     $file_path = $this->getOptionsValue('yaml-schema-path');
     $file_path .= '/' . $this->getArgumentsValue('output-name');
     \Doctrine_Core::generateYamlFromDb($file_path, array($con_name), $this->getImportOptions());
 }
開發者ID:Nivl,項目名稱:Ninaca_1,代碼行數:10,代碼來源:GenerateYaml.class.php

示例2: execute

 public function execute()
 {
     Doctrine_Core::generateYamlFromDb($this->getArgument('yaml_schema_path'));
     $this->notify('Generate YAML schema successfully from database');
 }
開發者ID:atikahmed,項目名稱:joomla-probid,代碼行數:5,代碼來源:GenerateYamlDb.php

示例3: action_admin_db2yaml

 /**
  * db2yaml
  *
  * This generates YAML schema files from Database.
  */
 public function action_admin_db2yaml()
 {
     // load sfYAML (it's somehow not loaded by doctrine autoload)
     include ROOT_LIBRARIES . 'doctrine/Doctrine/Parser/sfYaml/SfYaml.php';
     Doctrine_Core::generateYamlFromDb(DOCTRINE_YAML_SCHEMA_PATH . 'schema.yml', array(), self::$options);
     $message = '<b>The YAML schema file has been successfully generated from DATABASE.</b>';
     $message .= '<br /><br />Destination File: ' . DOCTRINE_YAML_SCHEMA_PATH . 'schema.yml';
     $this->setFlashmessage('success', $message);
     $this->redirectToReferer();
 }
開發者ID:Clansuite,項目名稱:Clansuite,代碼行數:15,代碼來源:DoctrineAdminController.php

示例4: generateYamlFromDatabase

 public function generateYamlFromDatabase()
 {
     $this->_initDoctrineResource();
     $yamlDir = $this->_getYamlDirectoryPath();
     Doctrine_Core::generateYamlFromDb($yamlDir);
     $this->_print('Succsesfully generated yaml schema files from database.', array('color' => 'green'));
     $this->_print('Destination Directory: ' . $yamlDir);
 }
開發者ID:nabdoulm,項目名稱:zf-doctrine,代碼行數:8,代碼來源:DoctrineProvider.php


注:本文中的Doctrine_Core::generateYamlFromDb方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。