Table of Contents

The GemsTracker Core

GemsTracker is a library that extends the Zend Framework libraries, but also supplies a standard new project template.

A new project

GemsTracker supplies a default new_project installation that allows you to quickly setup a standard project. The package contains these directories:

The library

GemsTracker is implemented as a separate library. You should either link to a stable tagged release and not change the code, or if you are involved in the project you can develop against the GemsTracker trunk.

The directory structure is based on the standard Zend Framework project directory structure with some extensions.

GemsTracker builds on the Zend Framework but does not follow in slavishly. Some changes are caused by the requirement that standard code can be overruled at the project level. Other changes were made because we want to extend the Zend Framework (but did not yet get round to the extensive documentation and unit testing required by the framework). These two types of extensions are easily distinguished by their parent directories within the classes directory:

For Gems and MUtil we generated API documentation, but here we will describe their effect on Zend Framework development.

The MUtil extensions

MUtil stand for MagnaFacta? Utilities. MagnaFacta is one of the companies hired to develop GemsTracker.

When a MUtil directory has the same name as an existing Zend directory it usually concerns a simple extension of that Zend component. E.g. the Markup directory contains an extension that renders e.g. BB or Wiki code to flat text. Always useful if you want to include a text version for smartphone with an HTML e-mail message. The Potemkin Translate adapter allows you to act as if there is a translator, without defining any.

However some other default extensions are more important:

Other directories extend the framework. These can be divided in two sets, high-level and low-level. We start with the low level extensions. The low-level do not adapt the Zend Framework, but enable the other extensions:

The high level packages are the ones that make a GemsTracker a non standard Zend Application:

The Gems extension

Most components in Gems extend a Zend or MUtil component adding functionality specific to GemsTracker, without adding any significant changes to the existing workings of those components. The exceptions fall in two broad categories: those that enable extensions and changes at the project level and those that form the core of GemsTracker.

  1. Project level extensibility
    GemsTracker tries to give a programmer as much freedom as necessary to change the core workings at the project level, without the programmer having to change or copy the core GemsTracker library.
    • Default Standard controllers, for easy overloading of controllers at the project level
    • Loader Allow 'mirrored' project level objects to be loaded instead of Gems level objects
    • Project Choose multi-layout, multi-organization, logging level and track types
  2. GemsTracker functionality
    • Communication (SOAP) communication with external applications
    • Event Survey or track specific code triggered before or after a survey is taken
    • Export Data export for scientific analysis
    • Menu The application menu, of course adaptable at the project level
    • Tracker THE CORE: integration with survey sources, track engines and token display
    • User Extensible, role based user authentication and authorization