当前位置: 首页>>代码示例>>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;未经允许,请勿转载。