definitions.php

Go to the documentation of this file.
00001 <?php
00002 
00003 /*******************************************************************************
00004  * Aliro - the modern, accessible content management system
00005  *
00006  * Aliro is open source software, free to use, and licensed under GPL.
00007  * You can find the full licence at http://www.gnu.org/copyleft/gpl.html GNU/GPL
00008  *
00009  * The author freely draws attention to the fact that Aliro derives from Mambo,
00010  * software that is controlled by the Mambo Foundation.  However, this section
00011  * of code is totally new.  If it should contain any fragments that are similar
00012  * to Mambo, please bear in mind (1) there are only so many ways to do things
00013  * and (2) the author of Aliro is also the author and copyright owner for large
00014  * parts of Mambo 4.6.
00015  *
00016  * Tribute should be paid to all the developers who took Mambo to the stage
00017  * it had reached at the time Aliro was created.  It is a feature rich system
00018  * that contains a good deal of innovation.
00019  *
00020  * Your attention is also drawn to the fact that Aliro relies on other items of
00021  * open source software, which is very much in the spirit of open source.  Aliro
00022  * wishes to give credit to those items of code.  Please refer to
00023  * http://aliro.org/credits for details.  The credits are not included within
00024  * the Aliro package simply to avoid providing a marker that allows hackers to
00025  * identify the system.
00026  *
00027  * Copyright in this code is strictly reserved by its author, Martin Brampton.
00028  * If it seems appropriate, the copyright will be vested in the Aliro Organisation
00029  * at a suitable time.
00030  *
00031  * Copyright (c) 2007 Martin Brampton
00032  *
00033  * http://aliro.org
00034  *
00035  * counterpoint@aliro.org
00036  *
00037  * This files consists only of definitions of symbols and interfaces
00038  *
00039  */
00040 
00041 // Standard definitions for Aliro
00042 // define ('_ALIRO_CLASS_BASE', '/var/www/OutsideDocRoot');
00043 
00044 define ('_ALIRO_IS_PRESENT', 1);
00045 
00046 define( '_MOS_NOTRIM', 0x0001 );        // prevent getParam trimming input
00047 define( '_MOS_ALLOWHTML', 0x0002 );     // cause getParam to allow HTML - purified on user side
00048 define( '_MOS_ALLOWRAW', 0x0004 );      // suppresses forcing of integer if default is numeric
00049 define( '_MOS_NOSTRIP', 0x0008 );       // suppress stripping of magic quotes
00050 
00051 define ('_ALIRO_ERROR_INFORM', 0);
00052 define ('_ALIRO_ERROR_WARN', 1);
00053 define ('_ALIRO_ERROR_SEVERE', 2);
00054 define ('_ALIRO_ERROR_FATAL', 3);
00055 
00056 define ('_ALIRO_FORM_CHECK_OK', 0);
00057 define ('_ALIRO_FORM_CHECK_REPEAT', 1);
00058 define ('_ALIRO_FORM_CHECK_FAIL', 2);
00059 define ('_ALIRO_FORM_CHECK_NULL', 3);
00060 define ('_ALIRO_FORM_CHECK_EXPIRED', 4);
00061 
00062 define ('_ALIRO_DB_NO_INTERFACE', 1);
00063 define ('_ALIRO_DB_CONNECT_FAILED', 2);
00064 
00065 define ('_ALIRO_USER_SIDE', 1);
00066 define ('_ALIRO_ADMIN_SIDE', 2);
00067 
00068 DEFINE ('_ALIRO_PAGE_NAV_DISPLAY_PAGES', 10);
00069 
00070 define ('_ALIRO_OBJECT_CACHE_SIZE_LIMIT', 100000);
00071 define ('_ALIRO_OBJECT_CACHE_TIME_LIMIT', 300);
00072 
00073 define ('_ALIRO_HTML_CACHE_SIZE_LIMIT', 100000);
00074 define ('_ALIRO_HTML_CACHE_TIME_LIMIT', 300);
00075 
00076 define ('_ALIRO_AUTHORISER_SESSION_CACHE_TIME', 600);
00077 
00078 define ('_ALIRO_DATABASE_CACHE_TIME', 3600);
00079 
00080 interface ifAliroModule {
00081 
00082     public function activate ($module, &$content, $area, $params);
00083 
00084 }
00085 
00086 interface ifAliroTemplate {
00087     public static function defaultModulePosition ();
00088     public function positions ();
00089     public function render ();
00090     public function component_render ();
00091 }
00092 
00093 interface ifAliroLocalTemplate {
00094     public static function defaultModulePosition ();
00095     public function positions ();
00096     public function render ();
00097 }
00098 
00099 interface ifTemplateRenderer {
00100     public function display ($template='');
00101     public function fetch ($template='');
00102     public function getengine ();
00103     public function addvar ($key, $value);
00104     public function addbyref ($key, &$value);
00105     public function getvars ($name);
00106     public function setdir ($dir);
00107     public function settemplate ($template);
00108 }

Generated on Thu Apr 17 13:03:27 2008 for ALIRO by  doxygen 1.5.5