Data Structure >>

Layer Model


  

The software is designed in a straight forward layer model. All calls are processed by an event-handler. This handler uses htaccess to create a $_GET array out of the used link. So you can work with human-readable URLs for all calls. From this handler the domain classes are called to run through a logical data flow. The domain classes then are using the PEAR abstraction-layer to access the used database. Once the data flow is finished the event handler relays needed data-objects to the presentation layer to display the data. Since spunQ is an open source software we use PEAR (pear.php.net) for database abstraction and Smarty (smarty.php.net) as presentation layer and template engine.

As you can easily see in the model, logic code and presentation are strictly separated. A workflow between programmers and designers is therefore easy to manage. All available variables together with their current values are always shown in the Smarty debugging interface. In the case of an array or object, the exact structure is also represented. By the used API for accessing the data in a possible frontend, these structures are mostly the same for all spunQ objects.

This given as a fact, frontend designers will be able to quickly create templates with the available data without being overwhelmed by the underlying code.


Tags

Technical

Related Subjects

>> Data Structure
>> Frontend Generation

Do you need additional information?

Pose your question

Search