joomla/joomla-platform — pull request #1790 by Cook-Self-Service (2013-01-07 00:19:41+00:00)
Title: [NEW] JDom Framework : HTML abstraction layer

JDom
=====

Presentation
-------

This mini framework is able to display HTML controls, views, images, ... from a PHP unique call.
JDom is a layer to abstract the datas in a common way for all. It becomes more easy to change a combo to a radio for example.
One unique call is able to instance HTML with the required assets for the control. (JS, CSS, etc...)

New concept
-----
This framework can be improved in features easily. This is only a structure concept. JDom is possibly gonna replace JHtml because the finality is similar.
I am proposing a concept where the controls who inerits the same kind of datas are also inherited classes.

Efficient and tested
-------
JDom has been used and tested by thousands of people this last year, through the Cook Self Service generator.
I have just generated it from Cook, so the headers are Cook Self Service, but this can be changed of course.

Use
----
Here a simple JDom 'Hello world' call :

JDom::_('html.fly', array(
'dataObject' => $row,
'dataKey' => 'myfield'
))

result equals to :
echo $row->myfield

- the first param is the class namespace
- The second param is an array of arguments

[JDom-1](https://f.cloud.github.com/assets/3200887/46435/7c1c4f28-585e-11e2-9bfd-eb858c0ed1d7.png)

As you can see, each parameter is given through its name, so at the difference to JHtml, JDom can realize a proper abstraction layer.

Features
---------
a lot !

Documentation
------------
TODO