Oedipus Decision Maker: Documentation for Developers

ODMDataStructure

ODM Overview

ODM is written mostly in PHP. It uses the Haddock framework. MySQL backend for the Database. Javascript only for extra gui functions (site must be fully functional without JS).

All the code is up on Google Code, so there are links to the latest revisions throughout.

Views in Oedipus

Oedipus_DramaPage

The main page view of a Drama is:

Oedipus_DramaPage

This page:

Oedipus_DramaDiv

The main Drama view is:

Oedipus_DramaDiv

This view extends HTMLTags_Div from Haddock.

It shows Toolbars for the Drama and Act:

Then it displays the scene defaulting to Oedipus_TreeViewSceneDiv

But this can be changed (through the links in the Act Toolbar) to Oedipus_FrameViewSceneDiv

Oedipus_FrameViewSceneDiv shows a Oedipus_FrameDiv

Redirect Scripts for editing values

The various Divs provide links to Redirect Scripts (if the Drama model is editable).

An example Redirect Script is:

Oedipus_EditFrameRedirectScript

These take in $_GET and $_POST values set in the Divs and use the helper classes to edit the Drama model.

Helper Classes

Helper classes such as:

Oedipus_DramaHelper

Provide functions for creating models:

   1 Oedipus_DramaHelper::get_drama_by_id($drama_id)
   2 Oedipus_FrameHelper::get_frame_by_id($drama_id)
   3 

Functions for updating the Database:

   1 Oedipus_DramaHelper::set_drama_name($drama_id, $drama_name)
   2 

Also, functions for displaying HTML, although these are being moved out into HTMLTags classes:

   1 Oedipus_DramaHelper::get_scene_notes_div($scene_id)
   2 

Useful Files

A dump of the ODM MySQL db used on the beta site:

odm_10-8-19.dump


CategoryOedipus

DramaTheoryWiki: Documentation for Developers (last edited 2010-08-21 04:50:46 by SaulHoward)