Development

/branches/1.2/lib/plugins/sfPropelPlugin/lib/builder/SfNestedSetPeerBuilder.php

You must first sign up to be able to contribute.

root/branches/1.2/lib/plugins/sfPropelPlugin/lib/builder/SfNestedSetPeerBuilder.php

Revision 9564, 1.0 kB (checked in by dwhittle, 7 years ago)

dwhittle: added sf builders for propel 1.3 nested sets (closes #3716)

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Date Author Revision"
Line 
1 <?php
2
3 require_once 'propel/engine/builder/om/php5/PHP5NestedSetPeerBuilder.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: SfMultiExtendObjectBuilder.php 6707 2007-12-26 08:32:23Z dwhittle $
18  */
19 class SfNestedSetPeerBuilder extends PHP5NestedSetPeerBuilder
20 {
21   public function build()
22   {
23     $code = parent::build();
24     if (!DataModelBuilder::getBuildProperty('builderAddComments'))
25     {
26       $code = sfToolkit::stripComments($code);
27     }
28
29     return $code;
30   }
31
32   protected function addIncludes(&$script)
33   {
34     if (!DataModelBuilder::getBuildProperty('builderAddIncludes'))
35     {
36       return;
37     }
38
39     parent::addIncludes($script);
40   }
41 }
42
Note: See TracBrowser for help on using the browser.