From 2c221ea67d0512961beea8fbcb30b23865c16bb0 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 20 Dec 2006 03:15:04 +0000 Subject: Add quickstart docs for Active Record and SqlMap --- .gitattributes | 6 + buildscripts/texbuilder/quickstart/pages.php | 5 + buildscripts/texbuilder/quickstart/quickstart.tex | 10 + demos/quickstart/protected/controls/TopicList.tpl | 8 +- .../protected/pages/Database/ActiveRecord.page | 360 +++++++++++++ .../protected/pages/Database/SqlMap.page | 265 ++++++++++ .../protected/pages/Database/diagram.png | Bin 0 -> 30320 bytes .../protected/pages/Database/object_states.png | Bin 0 -> 9596 bytes .../pages/Database/sqlmap_active_record.png | Bin 0 -> 17351 bytes .../protected/App_Code/Dao/ReportsDao.php | 1 + .../protected/App_Data/MySQL4/projects.xml | 9 +- .../App_Data/MySQL4/time-tracker-mysql.sql | 317 ++++++++---- .../protected/App_Data/mysql4-sqlmap.xml | 36 +- demos/time-tracker/protected/application.xml | 2 +- .../protected/pages/TimeTracker/ProjectList.php | 4 +- demos/time-tracker/tests/unit/BaseTestCase.php | 4 +- .../time-tracker/tests/unit/ProjectDaoTestCase.php | 6 +- demos/time-tracker/tests/unit/UserDaoTestCase.php | 6 +- .../Data/SqlMap/Configuration/TParameterMap.php | 19 +- framework/Data/SqlMap/TSqlMapManager.php | 16 - .../simple_unit/SqlMap/ActiveRecordSqlMapTest.php | 6 +- tests/simple_unit/SqlMap/InheritanceTest.php | 22 +- tests/simple_unit/SqlMap/StatementTest.php | 5 +- tests/simple_unit/SqlMap/common.php | 14 +- tests/simple_unit/SqlMap/maps/MySql/Account.xml | 8 +- .../simple_unit/SqlMap/maps/MySql/ActiveRecord.xml | 16 + .../SqlMap/maps/MySql/DynamicAccount.xml | 3 +- tests/simple_unit/SqlMap/maps/MySql/Order.xml | 18 +- tests/simple_unit/SqlMap/mysql.xml | 24 +- .../simple_unit/SqlMap/scripts/mysql/DataBase.sql | 570 +++++++++++++-------- .../SqlMap/scripts/mysql/account-init.sql | 15 +- .../SqlMap/scripts/mysql/account-procedure.sql | 1 - .../SqlMap/scripts/mysql/category-init.sql | 13 +- .../SqlMap/scripts/mysql/category-procedure.sql | 2 - .../SqlMap/scripts/mysql/documents-init.sql | 14 +- .../SqlMap/scripts/mysql/enumeration-init.sql | 14 +- .../SqlMap/scripts/mysql/line-item-init.sql | 15 +- .../SqlMap/scripts/mysql/order-init.sql | 17 +- .../SqlMap/scripts/mysql/other-init.sql | 87 +--- .../SqlMap/scripts/mysql/swap-procedure.sql | 2 - .../simple_unit/SqlMap/scripts/mysql/user-init.sql | 14 +- 41 files changed, 1336 insertions(+), 618 deletions(-) create mode 100644 demos/quickstart/protected/pages/Database/ActiveRecord.page create mode 100644 demos/quickstart/protected/pages/Database/SqlMap.page create mode 100644 demos/quickstart/protected/pages/Database/diagram.png create mode 100755 demos/quickstart/protected/pages/Database/object_states.png create mode 100755 demos/quickstart/protected/pages/Database/sqlmap_active_record.png create mode 100644 tests/simple_unit/SqlMap/maps/MySql/ActiveRecord.xml diff --git a/.gitattributes b/.gitattributes index d8e0942d..e9fe5dc6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1072,7 +1072,12 @@ demos/quickstart/protected/pages/Controls/TextHighlighter.page -text demos/quickstart/protected/pages/Controls/Validation.page -text demos/quickstart/protected/pages/Controls/Wizard.page -text demos/quickstart/protected/pages/Controls/wizard.gif -text +demos/quickstart/protected/pages/Database/ActiveRecord.page -text demos/quickstart/protected/pages/Database/DAO.page -text +demos/quickstart/protected/pages/Database/SqlMap.page -text +demos/quickstart/protected/pages/Database/diagram.png -text +demos/quickstart/protected/pages/Database/object_states.png -text +demos/quickstart/protected/pages/Database/sqlmap_active_record.png -text demos/quickstart/protected/pages/Fundamentals/Applications.page -text demos/quickstart/protected/pages/Fundamentals/Architecture.page -text demos/quickstart/protected/pages/Fundamentals/Components.page -text @@ -2353,6 +2358,7 @@ tests/simple_unit/SqlMap/domain/Search.php -text tests/simple_unit/SqlMap/domain/User.php -text tests/simple_unit/SqlMap/gen.php -text tests/simple_unit/SqlMap/maps/MySql/Account.xml -text +tests/simple_unit/SqlMap/maps/MySql/ActiveRecord.xml -text tests/simple_unit/SqlMap/maps/MySql/Category.xml -text tests/simple_unit/SqlMap/maps/MySql/Complex.xml -text tests/simple_unit/SqlMap/maps/MySql/Document.xml -text diff --git a/buildscripts/texbuilder/quickstart/pages.php b/buildscripts/texbuilder/quickstart/pages.php index c237a179..91dba08d 100644 --- a/buildscripts/texbuilder/quickstart/pages.php +++ b/buildscripts/texbuilder/quickstart/pages.php @@ -86,6 +86,11 @@ $pages['Active Control Overview'] = array( $pages['Write New Controls'] = array( 'Controls/NewControl.page'); +$pages['Working with Databases'] = array( + 'Database/DAO.page', + 'Database/ActiveRecord.page', + 'Database/SqlMap.page'); + $pages['Advanced Topics'] = array( 'Advanced/Collections.page', 'Advanced/Auth.page', diff --git a/buildscripts/texbuilder/quickstart/quickstart.tex b/buildscripts/texbuilder/quickstart/quickstart.tex index 264f9c85..d84383b8 100644 --- a/buildscripts/texbuilder/quickstart/quickstart.tex +++ b/buildscripts/texbuilder/quickstart/quickstart.tex @@ -40,6 +40,16 @@ \fancyhead[RE]{\nouppercase{\scshape\leftmark}} %----------------------------------------------------------------------- +% boxes + +\newsavebox{\fmboxb} +\newenvironment{mybox} + {\vspace{-2mm}\begin{center}\begin{lrbox}{\fmboxb}\hspace{2mm} + \begin{minipage}{0.85\textwidth} \vspace{2mm}\small} + { \vspace{2mm} \end{minipage} + \hspace{2mm}\end{lrbox}\fbox{\usebox{\fmboxb}}\end{center}} + + %----------------- TITLE -------------- \title{\Huge \bfseries PRADO v3.1 Quickstart Tutorial diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl index ddf88c2c..e2554a52 100644 --- a/demos/quickstart/protected/controls/TopicList.tpl +++ b/demos/quickstart/protected/controls/TopicList.tpl @@ -52,12 +52,14 @@
-
Working with Database
+
Working with Databases
- +
Advanced Topics