DSG_ControllerController part of the Model-View-Controller setup for the Dissonance Grading package
Parser the request array, filters input, and provides clean data to the model; acts as a link between model and view.
Located in /includes/dsg_controller.class.php (line 24)
The constructor
Check if the settings are correct for MIDI support to function, otherwise trigger error
Default method to be invoked when no user input is present
Tells the view to display the initial screen of the application
Function to sanitize and summarize the user input ($_REQUEST array)
Saves MIDI file in designated tmp directory and returns the src attribute
Uses Valentin Schmidts Midi Class 1.6 to create the MIDI file. This package can be downloaded from http://staff.dasdeck.de/valentin/midi/. Since Midi Class 1.6 uses Call-time pass-by-reference, I set the error level to supress warnings while opening the midi.class.php file if allow_call_time_pass_reference is set to off in php.ini.
Documentation generated on Sun, 26 Nov 2006 14:19:33 +0100 by phpDocumentor 1.3.1