Permalink
Browse files

Added exported CVS repository.

  • Loading branch information...
1 parent b3444b1 commit 2030848844380dea8ed4d11d7cbcbf0d3ffd83f5 hans committed Apr 8, 2005
Showing with 47,189 additions and 0 deletions.
  1. +4 −0 docs/docsystem/html/FrameToCBottom.html
  2. +15 −0 docs/docsystem/html/FrameToCTop.html
  3. +5 −0 docs/docsystem/html/StandardToCBottom.html
  4. +16 −0 docs/docsystem/html/StandardToCTop.html
  5. +17 −0 docs/docsystem/xsl/Chapters.xsl
  6. +59 −0 docs/docsystem/xsl/Toc.xsl
  7. +14 −0 docs/user_guide/book/UserGuide.book
  8. +35 −0 docs/user_guide/book/chapters/AboutThisBook.html
  9. +105 −0 docs/user_guide/book/chapters/AdvancedObjectModel.html
  10. +209 −0 docs/user_guide/book/chapters/Bibliography.html
  11. +167 −0 docs/user_guide/book/chapters/ColumnTypes.html
  12. +262 −0 docs/user_guide/book/chapters/FindingObjects.html
  13. +550 −0 docs/user_guide/book/chapters/GettingStarted.html
  14. +202 −0 docs/user_guide/book/chapters/Installation.html
  15. +261 −0 docs/user_guide/book/chapters/Introduction.html
  16. +121 −0 docs/user_guide/book/chapters/ManipulatingObjects.html
  17. +134 −0 docs/user_guide/book/chapters/Relationships.html
  18. +78 −0 docs/user_guide/book/chapters/appendices/AppendixA-PropelOperations.html
  19. +465 −0 docs/user_guide/book/chapters/appendices/AppendixB-SchemaReference.html
  20. +62 −0 docs/user_guide/book/chapters/appendices/AppendixC-MapBuilders.html
  21. +196 −0 docs/user_guide/book/css/Documentation.css
  22. +68 −0 docs/user_guide/book/css/FrameToc.css
  23. +13 −0 docs/user_guide/book/frame/DocFrame.html
  24. +67 −0 docs/user_guide/book/frame/NavTop.html
  25. +26 −0 docs/user_guide/book/frame/TitlePage.html
  26. +3 −0 docs/user_guide/book/images/README.txt
  27. BIN docs/user_guide/book/images/diagramonwhite.gif
  28. BIN docs/user_guide/book/images/inheritance.gif
  29. BIN docs/user_guide/book/images/propel.gif
  30. BIN docs/user_guide/book/index.html
  31. +68 −0 docs/user_guide/book/js/BookNav.js
  32. +12 −0 docs/user_guide/book/js/Chapters.js
  33. +121 −0 docs/user_guide/book/toc/FrameToC.html
  34. +107 −0 docs/user_guide/book/toc/ToC.html
  35. +175 −0 docs/user_guide/build.xml
  36. +122 −0 generator/CHANGELOG
  37. +175 −0 generator/INSTALL
  38. +506 −0 generator/LICENSE
  39. +414 −0 generator/build-propel.xml
  40. +151 −0 generator/build.properties-sample
  41. +113 −0 generator/build.xml
  42. +33 −0 generator/classes/propel/engine/EngineException.php
  43. +107 −0 generator/classes/propel/engine/builder/om/ClassTools.php
  44. +55 −0 generator/classes/propel/engine/builder/om/PeerBuilder.php
  45. +202 −0 generator/classes/propel/engine/database/model/AppData.php
  46. +930 −0 generator/classes/propel/engine/database/model/Column.php
  47. +84 −0 generator/classes/propel/engine/database/model/ConstraintNameGenerator.php
  48. +479 −0 generator/classes/propel/engine/database/model/Database.php
  49. +298 −0 generator/classes/propel/engine/database/model/Domain.php
  50. +300 −0 generator/classes/propel/engine/database/model/ForeignKey.php
  51. +46 −0 generator/classes/propel/engine/database/model/IDMethod.php
  52. +125 −0 generator/classes/propel/engine/database/model/IdMethodParameter.php
  53. +283 −0 generator/classes/propel/engine/database/model/Index.php
  54. +144 −0 generator/classes/propel/engine/database/model/Inheritance.php
  55. +116 −0 generator/classes/propel/engine/database/model/NameFactory.php
  56. +72 −0 generator/classes/propel/engine/database/model/NameGenerator.php
  57. +131 −0 generator/classes/propel/engine/database/model/PhpNameGenerator.php
  58. +290 −0 generator/classes/propel/engine/database/model/PropelTypes.php
  59. +203 −0 generator/classes/propel/engine/database/model/Rule.php
  60. +1,097 −0 generator/classes/propel/engine/database/model/Table.php
  61. +69 −0 generator/classes/propel/engine/database/model/Unique.php
  62. +186 −0 generator/classes/propel/engine/database/model/Validator.php
  63. +85 −0 generator/classes/propel/engine/database/model/XMLElement.php
  64. +408 −0 generator/classes/propel/engine/database/transform/XmlToAppData.php
  65. +189 −0 generator/classes/propel/engine/database/transform/XmlToData.php
  66. +114 −0 generator/classes/propel/engine/platform/Platform.php
  67. +146 −0 generator/classes/propel/engine/platform/PlatformDefaultImpl.php
  68. +57 −0 generator/classes/propel/engine/platform/PlatformFactory.php
  69. +81 −0 generator/classes/propel/engine/platform/PlatformMssqlImpl.php
  70. +76 −0 generator/classes/propel/engine/platform/PlatformMysqlImpl.php
  71. +90 −0 generator/classes/propel/engine/platform/PlatformOracleImpl.php
  72. +97 −0 generator/classes/propel/engine/platform/PlatformPgsqlImpl.php
  73. +74 −0 generator/classes/propel/engine/platform/PlatformSqliteImpl.php
  74. +434 −0 generator/classes/propel/phing/AbstractPropelDataModelTask.php
  75. +370 −0 generator/classes/propel/phing/PropelCreoleTransformTask.php
  76. +80 −0 generator/classes/propel/phing/PropelDataDTDTask.php
  77. +383 −0 generator/classes/propel/phing/PropelDataDumpTask.php
  78. +131 −0 generator/classes/propel/phing/PropelDataModelTask.php
  79. +210 −0 generator/classes/propel/phing/PropelDataSQLTask.php
  80. +173 −0 generator/classes/propel/phing/PropelGraphvizTask.php
  81. +228 −0 generator/classes/propel/phing/PropelOMTask.php
  82. +684 −0 generator/classes/propel/phing/PropelSQLExec.php
  83. +206 −0 generator/classes/propel/phing/PropelSQLTask.php
  84. +157 −0 generator/default.properties
  85. +159 −0 generator/dtd/database.dtd
  86. +281 −0 generator/pear/build-pear-package.xml
  87. +181 −0 generator/pear/build.properties
  88. +111 −0 generator/pear/pear-build.xml
  89. +21 −0 generator/pear/pear-propel-gen
  90. +24 −0 generator/pear/pear-propel-gen.bat
  91. +18 −0 generator/projects/bookstore/build.properties
  92. +54 −0 generator/projects/bookstore/runtime-conf.xml
  93. +214 −0 generator/projects/bookstore/schema.xml
  94. +29 −0 generator/projects/treetest/build.properties
  95. +54 −0 generator/projects/treetest/runtime-conf.xml
  96. +30 −0 generator/projects/treetest/treetest-schema.xml
  97. +80 −0 generator/projects/treetest/treetest.properties
  98. +5 −0 generator/templates/README
  99. +29 −0 generator/templates/conf/Control.tpl
  100. +79 −0 generator/templates/conf/xml.tpl
  101. +13 −0 generator/templates/data/dtd/dataset.tpl
  102. +6 −0 generator/templates/data/dtd/table.tpl
  103. +1 −0 generator/templates/data/dump/bottom.tpl
  104. +2 −0 generator/templates/data/dump/row.tpl
  105. +3 −0 generator/templates/data/dump/top.tpl
  106. +35 −0 generator/templates/om/php4/ExtensionNode.tpl
  107. +35 −0 generator/templates/om/php4/ExtensionNodePeer.tpl
  108. +36 −0 generator/templates/om/php4/ExtensionObject.tpl
  109. +36 −0 generator/templates/om/php4/ExtensionPeer.tpl
  110. +30 −0 generator/templates/om/php4/Interface.tpl
  111. +135 −0 generator/templates/om/php4/MapBuilder.tpl
  112. +62 −0 generator/templates/om/php4/MultiExtendObject.tpl
  113. +864 −0 generator/templates/om/php4/Node.tpl
  114. +559 −0 generator/templates/om/php4/NodePeer.tpl
  115. +1,972 −0 generator/templates/om/php4/Object.tpl
  116. +1,773 −0 generator/templates/om/php4/Peer.tpl
  117. +35 −0 generator/templates/om/php5/ExtensionNode.tpl
  118. +35 −0 generator/templates/om/php5/ExtensionNodePeer.tpl
  119. +43 −0 generator/templates/om/php5/ExtensionObject.tpl
  120. +37 −0 generator/templates/om/php5/ExtensionPeer.tpl
  121. +31 −0 generator/templates/om/php5/Interface.tpl
  122. +136 −0 generator/templates/om/php5/MapBuilder.tpl
  123. +59 −0 generator/templates/om/php5/MultiExtendObject.tpl
  124. +797 −0 generator/templates/om/php5/Node.tpl
  125. +518 −0 generator/templates/om/php5/NodePeer.tpl
  126. +1,692 −0 generator/templates/om/php5/Object.tpl
  127. +1,492 −0 generator/templates/om/php5/Peer.tpl
  128. +20 −0 generator/templates/sql/base/mssql/columns.tpl
  129. +42 −0 generator/templates/sql/base/mssql/drop.tpl
  130. +17 −0 generator/templates/sql/base/mssql/foreignkey.tpl
  131. +4 −0 generator/templates/sql/base/mssql/index.tpl
  132. +3 −0 generator/templates/sql/base/mssql/primarykey.tpl
  133. +38 −0 generator/templates/sql/base/mssql/table.tpl
  134. +11 −0 generator/templates/sql/base/mssql/tablefk.tpl
  135. +3 −0 generator/templates/sql/base/mssql/unique.tpl
  136. +26 −0 generator/templates/sql/base/mysql/columns.tpl
  137. +5 −0 generator/templates/sql/base/mysql/database-end.tpl
  138. +4 −0 generator/templates/sql/base/mysql/database-start.tpl
  139. +1 −0 generator/templates/sql/base/mysql/drop.tpl
  140. +17 −0 generator/templates/sql/base/mysql/foreignkey.tpl
  141. +11 −0 generator/templates/sql/base/mysql/index.tpl
  142. +8 −0 generator/templates/sql/base/mysql/primarykey.tpl
  143. +53 −0 generator/templates/sql/base/mysql/table.tpl
  144. +1 −0 generator/templates/sql/base/mysql/tablefk.tpl
  145. +9 −0 generator/templates/sql/base/mysql/unique.tpl
  146. +23 −0 generator/templates/sql/base/oracle/columns.tpl
  147. +5 −0 generator/templates/sql/base/oracle/drop.tpl
  148. +13 −0 generator/templates/sql/base/oracle/foreignkey.tpl
  149. +4 −0 generator/templates/sql/base/oracle/index.tpl
  150. +20 −0 generator/templates/sql/base/oracle/primarykey.tpl
  151. +4 −0 generator/templates/sql/base/oracle/sequence.tpl
  152. +34 −0 generator/templates/sql/base/oracle/table.tpl
  153. +5 −0 generator/templates/sql/base/oracle/tablefk.tpl
  154. +3 −0 generator/templates/sql/base/oracle/unique.tpl
  155. +13 −0 generator/templates/sql/base/pgsql/columns.tpl
  156. +4 −0 generator/templates/sql/base/pgsql/drop.tpl
  157. +20 −0 generator/templates/sql/base/pgsql/foreignkey.tpl
  158. +3 −0 generator/templates/sql/base/pgsql/index.tpl
  159. +3 −0 generator/templates/sql/base/pgsql/primarykey.tpl
  160. +3 −0 generator/templates/sql/base/pgsql/sequence.tpl
  161. +55 −0 generator/templates/sql/base/pgsql/table.tpl
  162. +14 −0 generator/templates/sql/base/pgsql/tablefk.tpl
  163. +3 −0 generator/templates/sql/base/pgsql/unique.tpl
  164. +20 −0 generator/templates/sql/base/sqlite/columns.tpl
  165. +1 −0 generator/templates/sql/base/sqlite/drop.tpl
  166. +4 −0 generator/templates/sql/base/sqlite/foreignkey.tpl
  167. +3 −0 generator/templates/sql/base/sqlite/index.tpl
  168. +33 −0 generator/templates/sql/base/sqlite/table.tpl
  169. +1 −0 generator/templates/sql/base/sqlite/tablefk.tpl
  170. +3 −0 generator/templates/sql/base/sqlite/unique.tpl
  171. +13 −0 generator/templates/sql/db-init/Control.tpl
  172. +6 −0 generator/templates/sql/db-init/mssql/unix.tpl
  173. +1 −0 generator/templates/sql/db-init/mssql/windows.tpl
  174. +4 −0 generator/templates/sql/db-init/mysql/createdb.tpl
  175. +4 −0 generator/templates/sql/db-init/oracle/createdb.tpl
  176. +4 −0 generator/templates/sql/db-init/pgsql/createdb.tpl
  177. +14 −0 generator/templates/sql/load/mssql/row.tpl
  178. +9 −0 generator/templates/sql/load/mssql/val.tpl
  179. +14 −0 generator/templates/sql/load/mysql/row.tpl
  180. +7 −0 generator/templates/sql/load/mysql/val.tpl
  181. +14 −0 generator/templates/sql/load/oracle/row.tpl
  182. +9 −0 generator/templates/sql/load/oracle/val.tpl
  183. +14 −0 generator/templates/sql/load/pgsql/row.tpl
  184. +11 −0 generator/templates/sql/load/pgsql/val.tpl
  185. +14 −0 generator/templates/sql/load/sqlite/row.tpl
  186. +4 −0 generator/templates/sql/load/sqlite/val.tpl
  187. +32 −0 generator/test/README
  188. +656 −0 generator/test/bookstore-test.php
  189. +215 −0 generator/test/classes/bookstore/BookstoreDataPopulator.php
  190. +51 −0 generator/test/classes/bookstore/BookstoreTestBase.php
  191. +50 −0 generator/test/classes/propel/BaseTestCase.php
  192. +89 −0 generator/test/classes/propel/GeneratedObjectTest.php
  193. +277 −0 generator/test/classes/propel/GeneratedPeerTest.php
  194. +161 −0 generator/test/classes/propel/engine/database/model/NameFactoryTest.php
  195. +51 −0 generator/test/classes/propel/engine/database/model/TableTest.php
  196. +288 −0 generator/test/classes/propel/util/CriteriaTest.php
  197. +111 −0 generator/test/classes/propel/validator/ValidatorTest.php
  198. BIN generator/test/etc/lob/propel.gif
  199. BIN generator/test/etc/lob/tin_drum.gif
  200. +76 −0 generator/test/etc/lob/tin_drum.txt
  201. +18 −0 generator/test/etc/schema/tabletest-schema.xml
  202. +116 −0 generator/test/php4/classes/TestListener.php
  203. +63 −0 generator/test/php4/classes/TestSuite.php
  204. +259 −0 generator/test/php4/classes/bookstore/BookstoreDataPopulator.php
  205. +59 −0 generator/test/php4/classes/bookstore/BookstoreTestBase.php
  206. +78 −0 generator/test/php4/classes/propel/BaseTestCase.php
  207. +96 −0 generator/test/php4/classes/propel/GeneratedObjectTest.php
  208. +332 −0 generator/test/php4/classes/propel/GeneratedPeerTest.php
  209. +323 −0 generator/test/php4/classes/propel/util/CriteriaTest.php
  210. +111 −0 generator/test/php4/classes/propel/validator/ValidatorTest.php
  211. +79 −0 generator/test/php4/run-tests.php
  212. +352 −0 generator/test/php4/tree-test.php
  213. +39 −0 generator/test/run-om-tests.php
  214. +44 −0 generator/test/run-tests.php
  215. +358 −0 generator/test/tree-test.php
  216. +80 −0 runtime-php4/CHANGELOG
  217. +175 −0 runtime-php4/INSTALL
  218. +506 −0 runtime-php4/LICENSE
  219. +89 −0 runtime-php4/README
  220. +711 −0 runtime-php4/classes/propel/Propel.php
  221. +66 −0 runtime-php4/classes/propel/PropelException.php
  222. +233 −0 runtime-php4/classes/propel/adapter/DBAdapter.php
  223. +37 −0 runtime-php4/classes/propel/adapter/DBMSSQL.php
  224. +123 −0 runtime-php4/classes/propel/adapter/DBMySQL.php
  225. +131 −0 runtime-php4/classes/propel/adapter/DBNone.php
  226. +115 −0 runtime-php4/classes/propel/adapter/DBPostgres.php
  227. +117 −0 runtime-php4/classes/propel/adapter/DBSQLite.php
  228. +131 −0 runtime-php4/classes/propel/adapter/DBSybase.php
  229. +103 −0 runtime-php4/classes/propel/logger/BasicLogger.php
  230. +181 −0 runtime-php4/classes/propel/logger/MojaviLogAdapter.php
  231. +334 −0 runtime-php4/classes/propel/map/ColumnMap.php
  232. +129 −0 runtime-php4/classes/propel/map/DatabaseMap.php
  233. +85 −0 runtime-php4/classes/propel/map/MapBuilder.php
  234. +425 −0 runtime-php4/classes/propel/map/TableMap.php
  235. +116 −0 runtime-php4/classes/propel/map/ValidatorMap.php
  236. +190 −0 runtime-php4/classes/propel/om/BaseObject.php
  237. +117 −0 runtime-php4/classes/propel/om/Persistent.php
  238. +93 −0 runtime-php4/classes/propel/om/PreOrderNodeIterator.php
  239. +969 −0 runtime-php4/classes/propel/util/BasePeer.php
  240. +1,703 −0 runtime-php4/classes/propel/util/Criteria.php
  241. +468 −0 runtime-php4/classes/propel/util/PropelPager.php
  242. +151 −0 runtime-php4/classes/propel/util/Transaction.php
  243. +51 −0 runtime-php4/classes/propel/validator/BasicValidator.php
  244. +73 −0 runtime-php4/classes/propel/validator/MaskValidator.php
  245. +52 −0 runtime-php4/classes/propel/validator/MaxLengthValidator.php
  246. +52 −0 runtime-php4/classes/propel/validator/MaxValueValidator.php
  247. +49 −0 runtime-php4/classes/propel/validator/MinLengthValidator.php
  248. +52 −0 runtime-php4/classes/propel/validator/MinValueValidator.php
  249. +51 −0 runtime-php4/classes/propel/validator/RequiredValidator.php
  250. +60 −0 runtime-php4/classes/propel/validator/UniqueValidator.php
  251. +41 −0 runtime-php4/classes/propel/validator/ValidValuesValidator.php
  252. +103 −0 runtime-php4/classes/propel/validator/ValidationFailed.php
  253. +145 −0 runtime/build-pear-package.xml
  254. +566 −0 runtime/classes/propel/Propel.php
  255. +61 −0 runtime/classes/propel/PropelException.php
  256. +172 −0 runtime/classes/propel/adapter/DBAdapter.php
  257. +36 −0 runtime/classes/propel/adapter/DBMSSQL.php
  258. +125 −0 runtime/classes/propel/adapter/DBMySQL.php
  259. +131 −0 runtime/classes/propel/adapter/DBNone.php
  260. +123 −0 runtime/classes/propel/adapter/DBOracle.php
  261. +117 −0 runtime/classes/propel/adapter/DBPostgres.php
  262. +116 −0 runtime/classes/propel/adapter/DBSQLite.php
  263. +126 −0 runtime/classes/propel/adapter/DBSybase.php
  264. +103 −0 runtime/classes/propel/logger/BasicLogger.php
  265. +176 −0 runtime/classes/propel/logger/MojaviLogAdapter.php
  266. +336 −0 runtime/classes/propel/map/ColumnMap.php
  267. +127 −0 runtime/classes/propel/map/DatabaseMap.php
  268. +75 −0 runtime/classes/propel/map/MapBuilder.php
  269. +425 −0 runtime/classes/propel/map/TableMap.php
  270. +109 −0 runtime/classes/propel/map/ValidatorMap.php
  271. +192 −0 runtime/classes/propel/om/BaseObject.php
  272. +118 −0 runtime/classes/propel/om/Persistent.php
  273. +92 −0 runtime/classes/propel/om/PreOrderNodeIterator.php
  274. +808 −0 runtime/classes/propel/util/BasePeer.php
  275. +1,597 −0 runtime/classes/propel/util/Criteria.php
  276. +190 −0 runtime/classes/propel/util/PeerInfo.php
  277. +473 −0 runtime/classes/propel/util/PropelPager.php
  278. +160 −0 runtime/classes/propel/util/Transaction.php
  279. +46 −0 runtime/classes/propel/validator/BasicValidator.php
  280. +71 −0 runtime/classes/propel/validator/MaskValidator.php
  281. +52 −0 runtime/classes/propel/validator/MaxLengthValidator.php
  282. +52 −0 runtime/classes/propel/validator/MaxValueValidator.php
  283. +49 −0 runtime/classes/propel/validator/MinLengthValidator.php
  284. +52 −0 runtime/classes/propel/validator/MinValueValidator.php
  285. +51 −0 runtime/classes/propel/validator/RequiredValidator.php
  286. +66 −0 runtime/classes/propel/validator/UniqueValidator.php
  287. +46 −0 runtime/classes/propel/validator/ValidValuesValidator.php
  288. +103 −0 runtime/classes/propel/validator/ValidationFailed.php
@@ -0,0 +1,4 @@
+
+</body>
+</html>
+<!-- $Id -->
@@ -0,0 +1,15 @@
+<!--
+-File $Id: FrameToCTop.html,v 1.1 2004/07/08 01:17:05 hlellelid Exp $
+-License GNU FDL (http://www.gnu.org/copyleft/fdl.html)
+-Copyright 2002, turing
+-Author alex black, enigma@turingstudio.com
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title> binarycloud contributor guide </title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="Stylesheet" rev="Stylesheet" href="../css/FrameToc.css" type="text/css" media="All" charset="iso-8859-1" />
+</head>
+<body>
+
@@ -0,0 +1,5 @@
+
+
+</body>
+</html>
+<!-- $Id -->
@@ -0,0 +1,16 @@
+<!--
+-File $Id: StandardToCTop.html,v 1.1 2004/07/08 01:17:05 hlellelid Exp $
+-License GNU FDL (http://www.gnu.org/copyleft/fdl.html)
+-Copyright 2002, turing
+-Author alex black, enigma@turingstudio.com
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title> table of contents </title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="Stylesheet" rev="Stylesheet" href="../css/Documentation.css" type="text/css" media="All" charset="iso-8859-1" />
+</head>
+<body>
+
+<h1>Table of Contents</h1>
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+// {{{ Header
+-File $Id: Chapters.xsl,v 1.1 2004/07/08 01:17:05 hlellelid Exp $
+-License LGPL (http://www.gnu.org/copyleft/lesser.html)
+-Copyright 2002, The Turing Studio, Inc.
+-Author alex black, enigma@turingstudio.com
+// }}}
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output omit-xml-declaration="yes" indent="no" method="xml" encoding="iso-8859-1" />
+
+<xsl:template match="//html">
+<xsl:for-each select="//h1"><xsl:text>new Array('</xsl:text><xsl:value-of select="$file_name" /><xsl:text>','</xsl:text><xsl:value-of select="." /><xsl:text>'),</xsl:text></xsl:for-each>
+</xsl:template>
+
+</xsl:stylesheet>
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+// {{{ Header
+-File $Id: Toc.xsl,v 1.1 2004/07/08 01:17:05 hlellelid Exp $
+-License LGPL (http://www.gnu.org/copyleft/lesser.html)
+-Copyright 2002, The Turing Studio, Inc.
+-Author alex black, enigma@turingstudio.com
+// }}}
+-->
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output omit-xml-declaration="yes" indent="yes" method="html" encoding="iso-8859-1" />
+
+ <xsl:template match="/">
+ <ul>
+ <xsl:for-each select="//h1">
+ <li>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:text>../</xsl:text><xsl:value-of select="$file_name" />
+ </xsl:attribute>
+ <xsl:if test="$mode = 'frame'">
+ <xsl:attribute name="target"><xsl:text>Content</xsl:text></xsl:attribute>
+ </xsl:if>
+ <xsl:value-of select="." />
+ </a>
+ </li>
+ </xsl:for-each>
+ <ul>
+ <xsl:for-each select="//h2">
+ <li>
+ <xsl:if test="a">
+ <a>
+ <xsl:apply-templates select="a" />
+ <xsl:value-of select="." />
+ </a>
+ </xsl:if>
+ <xsl:if test="not(a)">
+ <xsl:value-of select="." />
+ </xsl:if>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </ul>
+ </xsl:template>
+
+ <xsl:template match="a">
+ <xsl:attribute name="href">
+ <xsl:text>../</xsl:text><xsl:value-of select="$file_name" />
+ <xsl:if test="@name">
+ <xsl:text>#</xsl:text><xsl:value-of select="@name" />
+ </xsl:if>
+ </xsl:attribute>
+ <xsl:if test="$mode = 'frame'">
+ <xsl:attribute name="target"><xsl:text>Content</xsl:text></xsl:attribute>
+ </xsl:if>
+ </xsl:template>
+
+</xsl:stylesheet>
@@ -0,0 +1,14 @@
+#HTMLDOC
+--titleimage book/frame/TitlePage.html --logoimage book/images/logo-pdfsm.png --header "l.." --tocheader "l.." --footer "1 D" --linkcolor 003366 --linkstyle plain --jpeg=90
+chapters/AboutThisBook.html
+chapters/Introduction.html
+chapters/Installation.html
+chapters/GettingStarted.html
+chapters/ManipulatingObjects.html
+chapters/FindingObjects.html
+chapters/ColumnTypes.html
+chapters/Relationships.html
+chapters/AdvancedObjectModel.html
+chapters/appendices/AppendixA-PropelOperations.html
+chapters/appendices/AppendixB-SchemaReference.html
+chapters/appendices/AppendixC-MapBuilders.html
@@ -0,0 +1,35 @@
+<!--
+-File $Id: AboutThisBook.html,v 1.1 2004/07/08 01:17:06 hlellelid Exp $
+-License GNU FDL (http://www.gnu.org/copyleft/fdl.html)
+-Copyright 2003, Propel project
+-Author Hans Lellelid, hans@xmpl.org
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Propel Guide</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="Stylesheet" rev="Stylesheet" href="../css/Documentation.css" type="text/css" media="All" charset="iso-8859-1" />
+</head>
+<body>
+
+<h1>About this book</h1> <h2><a name="Authors"></a>Authors</h2>
+<ul>
+ <li>Hans Lellelid &lt;hans@xmpl.org&gt;</li>
+</ul>
+
+<p>With examples / contributions from David Giffin &lt;david@giffen.org&gt; . </p>
+<h2><a name="CVS"></a>CVS</h2>
+<p>
+ $Id: AboutThisBook.html,v 1.1 2004/07/08 01:17:06 hlellelid Exp $
+</p>
+<p>
+ $Revision: 1.1 $
+</p>
+<h2><a name="Copyright"></a>Copyright</h2>
+<p> Copyright 2004, Propel project</p>
+<h2><a name="License"></a>License</h2>
+<p> The Propel User Guide is licensed under the GNU FDL (<a href="Bibliography.html#bib.gnu-fdl">[gnu-fdl]</a>.</p>
+<pre>Copyright (c) 2004, Propel project<br />Permission is granted to copy, distribute and/or modify this document<br />under the terms of the GNU Free Documentation License, Version 1.1<br />or any later version published by the Free Software Foundation;<br />A copy of the license is included in the section entitled &quot;License&quot;.</pre>
+</body>
+</html>
@@ -0,0 +1,105 @@
+<!--
+-File $Id: AdvancedObjectModel.html,v 1.2 2005/03/22 02:47:50 hlellelid Exp $
+-License GNU FDL (http://www.gnu.org/copyleft/fdl.html)
+-Copyright 2003, Propel project
+-Author Hans Lellelid, hans@xmpl.org
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Propel Guide</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
+ <link rel="Stylesheet" rev="Stylesheet" href="../css/Documentation.css" type="text/css" charset="iso-8859-1"/>
+</head>
+<body>
+
+<h1>Advanced Object Model</h1>
+
+<p>This chapter looks at some of the advanced options for the Propel object model.</p>
+<h2><a name="AdvancedOM.OverridingBaseClasses"></a>Overriding
+ Base Classes</h2>
+<h3>For Objects</h3>
+<p>By default all Base object classes extend the <strong>propel.om.BaseObject</strong>
+ class, which provides a shared set of methods and properties that the objects
+ use to track their modification state. In some cases you may wish specify a
+ <strong>BaseObject</strong> subclass to use instead; you can do this from your
+ XML data definition:</p>
+<pre title="Overriding base object class">&lt;table name=&quot;book&quot; idMethod=&quot;native&quot; baseClass=&quot;bookstore.BookstoreComponent&quot;&gt;</pre>
+<p>Note that you must use the dot-path notation when specifying the new base class,
+ as the class must be included before it can be referenced. The dot-path notation
+ specifies a path relative to a location on the PHP <em>include_path</em>. Now
+ the generated BaseBook class will extend BookstoreComponent. Note that <strong>BookstoreComponent</strong>
+ must extend <strong>BaseObject</strong>, or PHP will generate fatal errors when
+ you attempt to use your generated object / peer classes. </p>
+<pre title="overriding base object class PHP code">require_once 'bookstore/BookstoreComponent.php';
+
+class BaseBook extends BookstoreComponent {</pre>
+<h3>For Peers</h3>
+<p>By default all Base peer classes do not have any super class. You may wish to specify
+ a base peer class -- e.g. to provide some additional shared functionality used by your
+ object model.</p>
+<p>As with the base object class, changing the base peer class is possible in
+ the XML definition:</p>
+<pre title="Overriding base object class">&lt;table name=&quot;book&quot; idMethod=&quot;native&quot; basePeer=&quot;BookstorePeer&quot;&gt;</pre>
+<p>As you'd expect, the <strong>BaseBookPeer</strong> class now extends <strong>BookstorePeer</strong>
+ instead of <strong>BasePeer</strong>. This class must provide all public/protected
+ methods of <strong>BasePeer</strong>.</p>
+<h2><a name="AdvancedOM.Inheritance"></a>Inheritance</h2>
+
+<p>Propel provides basic support for implementing object-oriented inheritance
+ (subclassing) your object model. There are several implementation options for
+ mapping entity classes and subclasses to database tables. Propel uses the most
+ efficient model from a SQL and query performance perspective: one table is used
+ for all subclasses. This has the implication that your table must have all columns
+ needed by main class and subclasses. Propel will create stub subclasses, but
+ you must add logic to the peer class if you require that subclasses only contain
+ a subset of the information -- i.e. by default all subclasses will be populated
+ with the entire column row.</p>
+<p>You must define a column in your table that will serve to identify which class
+ should be used to represent the table row; do this using the <strong>inheritance=&quot;single&quot;
+ </strong>attribute (currently &quot;single&quot; is the only option other than
+ the default, &quot;false&quot;). Also if the inheritance tree is known, you
+ should use the <strong>&lt;inheritance&gt;</strong> tag to specify the class
+ hierarchy. <em>Note that this 'key' column must be a real column in your table.</em></p>
+
+<pre title="example of inheritance definition">&lt;table name=&quot;publication&quot;&gt;
+ &lt;column name=&quot;id&quot; type=&quot;INTEGER&quot; primaryKey=&quot;true&quot;/&gt;
+ &lt;column name=&quot;class&quot; type=&quot;INTEGER&quot; inheritance=&quot;single&quot;&gt;
+ &lt;inheritance key=&quot;1&quot; class=&quot;Journal&quot; extends=&quot;bookstore.Publication&quot;/&gt;
+ &lt;inheritance key=&quot;2&quot; class=&quot;Magazine&quot; extends=&quot;bookstore.Journal&quot;/&gt;
+ &lt;/column&gt;
+ &lt;column name=&quot;title&quot; type=&quot;VARCHAR&quot; size=&quot;100&quot;/&gt;
+&lt;/table&gt;</pre>
+<p><em><strong>Important:</strong> you must specify the package prefix when indicating
+ the parent classes (extends=&quot;package.ClassName&quot;) so that these clases
+ can be properly included at the top of the subclass definitions; however, you
+ cannot specify a package for the subclasses, because Propel only builds one
+ package at at time (the one specified by the ${propel.targetPackage} property
+ in <tt>build.properties</tt>) and it is required that the subclasses be part
+ of the package you are currently buildling. Conceivably, the parent classes
+ could be part of a separate package.</em></p>
+<p>This code above will result in creation of 2 base classes -- <strong>BasePublicationPeer</strong>
+ and <strong>BasePublication</strong><em> </em>-- and 4 stub classes -- <strong>PublicationPeer</strong>,
+ <strong>Publication</strong>, <strong>Journal</strong><em> </em>(extends <strong>Publication</strong><em>)</em>,
+ and <strong>Magazine</strong> (extends <strong>Journal</strong><em>).</em></p>
+<p align="center"><img src="../images/inheritance.gif" width="113" height="385" /></p>
+<p>Notice that only one base peer class is created. If you want to ensure that
+ your subclasses only work with a subset of the columns from each row, you should
+ override the <strong>BasePublicationPeer::populateObject()</strong>
+ method to provide custom population based on object class. In many cases, however,
+ the fact that objects of the correct class are returned may be sufficient in
+ and of itself for your application needs.</p>
+<p>If the inheritance tree is dynamic -- or unknown -- you may omit the <strong>&lt;inheritance&gt;</strong>
+ tag and it is assumed that the key column will contain a classname -- using
+ dot-path notation (e.g. &quot;bookstore.Journal&quot;, &quot;myapp.entity.MyClassName&quot;).
+ Also, you may override the base peer's <strong>getOMClass()</strong> to return
+ the classname to use based on more complex logic (or query).</p>
+<h3>Abstract Entities</h3>
+<p>If you wish to enforce using subclasses of an entity, you may declare a table
+ &quot;abstract&quot; in your XML data model.</p>
+<pre title="abstract table example">&lt;table name=&quot;publication&quot; abstract=&quot;true&quot;&gt;</pre>
+<p>Specifying that a table is abstract will generate abstract object stub classes,
+ and will also require that you implement the <strong>getOMClass()</strong> method
+ in your peer stub class (exception will be thrown if you do not).</p>
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 2030848

Please sign in to comment.