Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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: sfPropelSchemaToXmlTask.class.php 23922 2009-11-14 14:58:38Z fabien $
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
}