GloryLands
System
[
class tree: GloryLands
] [
index: GloryLands
] [
all elements
]
GloryLands
COPYING
README
Todo List
Packages:
GloryLands
Modules
Source for file gl.php
Documentation is available at
gl.php
<?php
/**
* Basic system access
*
* <pre>
* GloryLands, a Web-Based, Massive Multiplayer Online RPG/Strategy Game
* Copyright (C) 2008-09 John Haralampidis <jïhnys2[at]gmail.cïm>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For any help/suggestions or troubleshooting you can see the
* project community website at <http://www.glorylands.gr>
* </pre>
*
*
@license
GNU/GPLv3 GNU General Public License version 3
*
@package
GloryLands
*
@subpackage
System
*
@author
John Haralampidis <jïhnys2[at]gmail.cïm>
*
@copyright
Copyright (C) 2007-2009, John Haralampidis
*
@version
1.0
*/
/**
* Glorylands Core Namespace
*
* This static class provides the root management functions
* of the whole glorylands system.
*
* In order to run the game you should run:
*
* GL::initialize();
* GL::process();
* GL::render();
* and GL::finalize();
*
* If you forget to call finalize, it will be called upon
* shutdown. Also, you don't need to call the initialize() function
* if you initialized the system with bootstrap.
*
*
@subpackage
System
*
@version
1.0
*/
class
GL
{
/**
* A shortcut to the main project database (Configured by the db.php)
*
@var
DBJet
*/
static
public
$db
;
/**
* The response stream data buffer
*
@var
GLDataset
*/
static
public
$stream
;
/**
* Initialize glorylands
*/
static
public
function
initialize
(
)
{
// Initialize extra modules
GLConfig
::
initialize
(
)
;
GLDB
::
Initialize
(
)
;
GLConfig
::
initialize_dbconf
(
)
;
GLCache
::
initialize
(
)
;
GLOptimizer
::
initialize
(
)
;
GLAssemblyLine
::
initialize
(
)
;
GLModules
::
initialize
(
)
;
// Start session
session_start
(
)
;
// Post-init of assembly line (After the session restoration)
GLAssemblyLine
::
post_initialize
(
)
;
}
static
public
function
process
(
)
{
GLAssemblyLine
::
process
(
)
;
}
static
public
function
render
(
)
{
echo
GLError
::
render
(
)
;
echo
GLAssemblyLine
::
render
(
)
;
}
static
public
function
finalize
(
)
{
// Save PHP - JS link status
GLOOLink
::
save
(
)
;
// Shut down objects
GLAssemblyLine
::
finalize
(
)
;
}
}
?>
Documentation generated on Tue, 13 Oct 2009 23:48:56 +0300 by
phpDocumentor 1.4.1