<?php/** * CyCle IDE, base * * @author Leon Pegg * @package CyCleIDE */# Note : all constants should be UPPERCASE and words seperated with _# Note : all classes should be CamelCaps no _# Note : methods and class propertys should all have modifyers (public/private/protected)# Note : static modifyer must precede method and property modifyers (public/private/protected)# Note : all variables should be lowercase no _# Note : all methods/functions should be lowercase and words seperated with _# Note : { should not be on new line// redefine DIRECTORY_SEPARATOR because I am lazydefine('DS', DIRECTORY_SEPARATOR);// define directory pathsdefine('IDE_ROOT_DIR', realpath(dirname(__FILE__)));define('IDE_CONFIGURE_DIR', realpath(dirname(__FILE__)).DS.'conf');define('IDE_IMAGE_DIR', realpath(dirname(__FILE__)).DS.'img');define('IDE_LOCALE_DIR', realpath(dirname(__FILE__)).DS.'locale');define('IDE_LIBRARY_DIR', realpath(dirname(__FILE__)).DS.'lib');set_include_path('.;'.IDE_LIBRARY_DIR.';');set_exception_handler('exception_handler');set_error_handler('error_handler');class Ide { const ROOT_DIR = IDE_ROOT; const CONFIGURE_DIR = IDE_CONFIGURE; const IMAME_DIR = IDE_IMAGE; const LOCALE_DIR = IDE_LOCALE; const LIBRARY_DIR = IDE_LIBRARY; protected function __construct(){ // static }}function exception_handler($exception){ // exception handler}function error_handler($errno, $errstring, $errfile, $errline){ // error handler}?>