|
Revision 6970, 1.3 kB
(checked in by fabien, 5 years ago)
|
moved propel classes from addon subpackage to propel subpackage
|
- 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/PHP5ExtensionObjectBuilder.php'; |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
class SfExtensionObjectBuilder extends PHP5ExtensionObjectBuilder |
|---|
| 20 |
{ |
|---|
| 21 |
protected function addIncludes(&$script) |
|---|
| 22 |
{ |
|---|
| 23 |
if (!DataModelBuilder::getBuildProperty('builderAddIncludes')) |
|---|
| 24 |
{ |
|---|
| 25 |
return; |
|---|
| 26 |
} |
|---|
| 27 |
|
|---|
| 28 |
parent::addIncludes($script); |
|---|
| 29 |
} |
|---|
| 30 |
|
|---|
| 31 |
protected function addClassOpen(&$script) |
|---|
| 32 |
{ |
|---|
| 33 |
$table = $this->getTable(); |
|---|
| 34 |
$tableName = $table->getName(); |
|---|
| 35 |
$tableDesc = $table->getDescription(); |
|---|
| 36 |
|
|---|
| 37 |
$baseClassname = $this->getObjectBuilder()->getClassname(); |
|---|
| 38 |
|
|---|
| 39 |
$script .= " |
|---|
| 40 |
/** |
|---|
| 41 |
* Subclass for representing a row from the '$tableName' table. |
|---|
| 42 |
* |
|---|
| 43 |
* $tableDesc |
|---|
| 44 |
* |
|---|
| 45 |
* @package ".$this->getPackage()." |
|---|
| 46 |
*/ |
|---|
| 47 |
class ".$this->getClassname()." extends $baseClassname |
|---|
| 48 |
{"; |
|---|
| 49 |
} |
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 |
* Closes class. |
|---|
| 53 |
* @param string &$script The script will be modified in this method. |
|---|
| 54 |
*/ |
|---|
| 55 |
protected function addClassClose(&$script) |
|---|
| 56 |
{ |
|---|
| 57 |
$script .= " |
|---|
| 58 |
} |
|---|
| 59 |
"; |
|---|
| 60 |
} |
|---|
| 61 |
} |
|---|
| 62 |
|
|---|