Development

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

You must first sign up to be able to contribute.

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

Revision 14972, 1.1 kB (checked in by FabianLange, 5 years ago)

[1.3] fixed help message of propel task

  • 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->aliases = array('propel-convert-yml-schema');
29     $this->namespace = 'propel';
30     $this->name = 'schema-to-xml';
31     $this->briefDescription = 'Creates schema.xml from schema.yml';
32
33     $this->detailedDescription = <<<EOF
34 The [propel:schema-to-xml|INFO] task converts YML schemas to XML:
35
36   [./symfony propel:schema-to-xml|INFO]
37 EOF;
38   }
39
40   /**
41    * @see sfTask
42    */
43   protected function execute($arguments = array(), $options = array())
44   {
45     $this->schemaToXML(self::CHECK_SCHEMA);
46   }
47 }
48
Note: See TracBrowser for help on using the browser.