Development

/branches/1.4/lib/plugins/sfPropelPlugin/lib/task/sfPropelSchemaToXmlTask.class.php

You must first sign up to be able to contribute.

root/branches/1.4/lib/plugins/sfPropelPlugin/lib/task/sfPropelSchemaToXmlTask.class.php

Revision 23922, 1.1 kB (checked in by fabien, 4 years ago)

[1.4] removed deprecated stuff

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 require_once(dirname(__FILE__).'/sfPropelBaseTask.class.php');
12
13 /**
14  * Creates schema.yml from schema.xml.
15  *
16  * @package    symfony
17  * @subpackage propel
18  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
19  * @version    SVN: $Id$
20  */
21 class sfPropelSchemaToXmlTask extends sfPropelBaseTask
22 {
23   /**
24    * @see sfTask
25    */
26   protected function configure()
27   {
28     $this->namespace = 'propel';
29     $this->name = 'schema-to-xml';
30     $this->briefDescription = 'Creates schema.xml from schema.yml';
31
32     $this->detailedDescription = <<<EOF
33 The [propel:schema-to-xml|INFO] task converts YML schemas to XML:
34
35   [./symfony propel:schema-to-xml|INFO]
36 EOF;
37   }
38
39   /**
40    * @see sfTask
41    */
42   protected function execute($arguments = array(), $options = array())
43   {
44     $this->schemaToXML(self::CHECK_SCHEMA);
45   }
46 }
47
Note: See TracBrowser for help on using the browser.