00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 define ('_ALIRO_IS_PRESENT', 1);
00045
00046 define( '_MOS_NOTRIM', 0x0001 );
00047 define( '_MOS_ALLOWHTML', 0x0002 );
00048 define( '_MOS_ALLOWRAW', 0x0004 );
00049 define( '_MOS_NOSTRIP', 0x0008 );
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', 3600);
00072
00073 define ('_ALIRO_HTML_CACHE_SIZE_LIMIT', 100000);
00074 define ('_ALIRO_HTML_CACHE_TIME_LIMIT', 600);
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 }
00091
00092 interface ifAliroMainTemplate {
00093 public static function defaultModulePosition ();
00094 public function positions ();
00095 public function render ();
00096 public function component_render ();
00097 }
00098
00099 interface ifAliroLocalTemplate {
00100 public static function defaultModulePosition ();
00101 public function positions ();
00102 public function render ();
00103 }
00104
00105 interface ifTemplateRenderer {
00106 public function display ($template='');
00107 public function fetch ($template='');
00108 public function getengine ();
00109 public function addvar ($key, $value);
00110 public function addbyref ($key, &$value);
00111 public function getvars ($name);
00112 public function setdir ($dir);
00113 public function settemplate ($template);
00114 }