﻿
/**
*	@class PHPPage
*
*	The PHPPage is the display class for all pre-js-model PHP based pages
*	The purpose of this class is to create an interface for all abstract js behaviors
*	but not add any additional behavior to the page, so that the page can function
*	correctly (as was intended) with solely PHP. 
*
*	As and when each page is updated to incorporate the new js-model, a bespoke custom class will
* 	be created to replace this one.
*
*	@author			Daniel Ivanovic dan@anti-blanks.co.uk
*/

var PHPPage = AbstractSitePage.extend(
	{
		/**
		*   init
		*
		*   Constructs the screen
		*/
		init: function()
		{
			this._super( "PHPPage" );
		},
		
		/**
		*   setup
		*
		*   Sets up the view instance
		*/
		setup: function()
		{
			//this.debug( "setting up" );
			
			// call super last once all setup is complete
			// this will init the screen & build all the views
			this._super();
		},
		
		/**
		*   build
		*
		*   Builds the view
		*/
		build: function()
		{
			//this.debug( "building" );
			
			// build all abstract page elements
			this._super();
		},
		
		/**
		*   buildDialogues
		*
		*   Builds the page dialogues
		*/
		buildDialogues: function()
		{
			//this.debug( "building page dialogues" );
			
			// build all abstract page dialogues
			this._super();
		},
		
		/**
		*   buildComponents
		*
		*   Builds the page components
		*/
		buildComponents: function()
		{
			//this.debug( "building page components" );
			
			// build all abstract page components
			this._super();
		},
		
		/**
		*   fixScreenPNG
		*
		*   Fixes all the screen png's
		*/
		fixScreenPNG: function()
		{
			// @@ TODO : Add all screen .PNG fixes here
		},
		
		/**
		*   update
		*
		*   Updates the view
		*
		*	@param	t - event type
		*	@param	d - data
		*/
		update: function(t, d)
		{
			this.debug( "updating " + t + " : " + d );
			
			// update page elements
			this._super( t, d );
		}
	}
);

/**
*	ready
*/
$(document).ready( function() 
	{
		page = new PHPPage();
	}
);
