Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
The Somusar/SoProTech[tm] Booklet Series
Volume IX

"Code Generation Somusar Style"

Printer friendly


Contents
1. Introduction
2. Reproducing a POC on Your Computer
3. J2EE Generator
4. .NET Generator
5. PHP Generator
6. Java (J2SE) Generator
7. Bare Bones Multitier Generator
8. XML Processor
9. XML Generator
10. API Generator Producing C and HTML
11. VisualBasic.NET Generator Draft
12. VisualBasic.NET Generator
13. XML to Java Generator
14. PHP/HTML Generator
14.1 Proof-of-concept (POC) Information
14.2 Description
14.3 PHP Generator: Database Access Layer
14.4 PHP Generator: Test Page
14.5 HTML Generator: Generating HTML forms
14.6 HTML Generator: Generating HTML documentation files
15. Java and JSP DAO Struts Generator
16. Further Reading

Chapter 14 - PHP/HTML Generator

14.1 - Proof-of-concept (POC) Information        top

14.2 - Description        top

This POC generator is an update of a prototype generator thoroughly described in article "PHP and HTML Generation using SoProMach", published on Code Generation Network (CGN).

The generator reproduces the PHP code described by Eric Rollins in his article "PHP Web Site Generation using Ruby", also published on CGN. Additionally, the generator of this POC produces HTML forms and documentation for the software entities of the sample target application, featuring classes for authors, books, publishers, reviewers, and book stores.

Purpose of this POC is to demonstrate the advantages of the multitier consistency offered by Somusar/Software Entities[tm], that also provide a common language to designers of different application tiers, thus reducing the cross-tier communication and inconsistency problems.

All output files are generated from the input model files listed in the following table.

Table 34 - Input Design Files

File name Source code
project/author.ef View
project/book.ef View
project/publisher.ef View
project/reviewer.ef View
project/store.ef View
project/store_book.ef View
project/db_load.ef View

14.3 - PHP Generator: Database Access Layer        top

Table 35 - PHP Generator: Generated Files

File name Source code
project/DB/AuthorSS.php View
project/DB/AuthorValue.php View
project/DB/BookSS.php View
project/DB/BookValue.php View
project/DB/BookWithNamesValue.php View
project/DB/PublisherSS.php View
project/DB/PublisherValue.php View
project/DB/ReviewerSS.php View
project/DB/ReviewerValue.php View
project/DB/StoreBookSS.php View
project/DB/StoreBookValue.php View
project/DB/StoreBookWithNamesValue.php View
project/DB/StoreSS.php View
project/DB/StoreValue.php View

14.4 - PHP Generator: Test Page        top

Table 36 - PHP Generator: Generated Files

File name Source code
project/DB/DbLoadTest.php View

14.5 - HTML Generator: Generating HTML forms        top

Table 37 - HTML Generator: Generated Files

File name Source code
project/UI/author.html View
project/UI/book.html View
project/UI/publisher.html View
project/UI/reviewer.html View
project/UI/store.html View
project/UI/store_book.html View

14.6 - HTML Generator: Generating HTML documentation files        top

Table 38 - HTML Generator: Generated Files

File name Source code
project/DOC/author.html View
project/DOC/book.html View
project/DOC/db_load.html View
project/DOC/publisher.html View
project/DOC/reviewer.html View
project/DOC/store.html View
project/DOC/store_book.html View

[Previous chapter]    [Next chapter]    [Back to top]

http:// www.somusar.com  / doc  / booklets  / cg_somusar  - Powered by SoProMach
Copyright © 2003-2012 Somusar - Trademarks - Legal - Privacy - Webmaster