<?php
// Copyright (c) MetaClass, 2003-2008
// Licensed under the Academic Free License version 3.0
includeClass('', 'pnt/web/pages');
/** Objects of this class are the single entrypoint for handling http requests.
* Site connects to the database as specified in scriptMakeSettings.php and
* sets the ErrorHandler, the debugMode, specifies application folder and domain folder,
* supplies StringConverters, baseUrl and takes care of sessions.
*
* This abstract superclass provides behavior for the concrete
* subclass StringConverter in the root classFolder or in the application classFolder.
* To keep de application developers code (including localization overrides)
* separated from the framework code override methods in the
* concrete subclass rather then modify them here.
* @see http://www.phppeanuts.org/site/index_php/Menu/178
* @package pnt/web
*/
class PntSite extends {
// subclassed from Pnt Page instead of PntRequestHandler becuase of depricated support
// to be set from scriptMakeSettings.php
var $dbUser;
var $dbPwd;
var $dbAddress;
var $dbPort;
var $dbName;
// may be set from scriptMakeSettings.php
var $baseUrl;
var $debugMode = 'short'; //options: '', 'short', 'verbose'
var $funkyUrls = false;
var $dir; //set from constructor parameter
var $domainDir; //may be set from the applications index.php
// private
var $requestStartTime;
var $filters;
var $converter;
var $sessionStarted = false;
//depricated support
var $isSiteRunning=true;
var $name="site";
var $os="linux";