Development

/branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/builder/SfMapBuilderBuilder.php

You must first sign up to be able to contribute.

root/branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/builder/SfMapBuilderBuilder.php

Revision 8780, 0.9 kB (checked in by fabien, 6 years ago)

reverted previous code

  • 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 require_once 'propel/engine/builder/om/php5/PHP5MapBuilderBuilder.php';
4
5 /*
6  * This file is part of the symfony package.
7  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
8  *
9  * For the full copyright and license information, please view the LICENSE
10  * file that was distributed with this source code.
11  */
12
13 /**
14  * @package    symfony
15  * @subpackage propel
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 class SfMapBuilderBuilder extends PHP5MapBuilderBuilder
20 {
21   public function build()
22   {
23     if (!DataModelBuilder::getBuildProperty('builderAddComments'))
24     {
25       return sfToolkit::stripComments(parent::build());
26     }
27     
28     return parent::build();
29   }
30
31   protected function addIncludes(&$script)
32   {
33     if (!DataModelBuilder::getBuildProperty('builderAddIncludes'))
34     {
35       return;
36     }
37
38     parent::addIncludes($script);
39   }
40 }
41
Note: See TracBrowser for help on using the browser.