00001 <?php
00003
00004
00005
00006
00007
00008
00010
00027 function register_app_inf($__flea_internal_config = null)
00028 {
00029 FLEA::loadAppInf($__flea_internal_config);
00030 }
00031
00040 function get_app_inf($option)
00041 {
00042 return FLEA::getAppInf($option);
00043 }
00044
00052 function set_app_inf($option, $data = null)
00053 {
00054 FLEA::setAppInf($option, $data);
00055 }
00056
00063 function import($dir)
00064 {
00065 FLEA::import($dir);
00066 }
00067
00074 function load_file($filename, $loadOnce = false)
00075 {
00076 return FLEA::loadFile($filename, $loadOnce);
00077 }
00078
00087 function load_class($className)
00088 {
00089 return FLEA::loadClass($className);
00090 }
00091
00100 function get_file_path($filename, $return = false)
00101 {
00102 return FLEA::getFilePath($filename, $return);
00103 }
00104
00113 function & get_singleton($className)
00114 {
00115 return FLEA::getSingleton($className);
00116 }
00117
00127 function & reg(& $obj, $name = null)
00128 {
00129 return FLEA::register($obj, $name);
00130 }
00131
00140 function & ref($name = null)
00141 {
00142 return FLEA::registry($name);
00143 }
00144
00153 function check_reg($name)
00154 {
00155 return FLEA::isRegistered($name);
00156 }
00157
00168 function get_cache($cacheId, $time = 900, $timeIsLifetime = true, $cacheIdIsFilename = false)
00169 {
00170 return FLEA::getCache($cacheId, $time, $timeIsLifetime, $cacheIdIsFilename);
00171 }
00172
00182 function write_cache($cacheId, $data, $cacheIdIsFilename = false)
00183 {
00184 return FLEA::writeCache($cacheId, $data, $cacheIdIsFilename);
00185 }
00186
00193 function purge_cache($cacheId, $cacheIdIsFilename = false)
00194 {
00195 return FLEA::purgeCache($cacheId, $cacheIdIsFilename);
00196 }
00197
00204 function echo_h($text)
00205 {
00206 echo htmlspecialchars($text);
00207 }
00208
00215 function echo_t($text)
00216 {
00217 echo t($text);
00218 }
00219
00228 function & get_dbo($dsn)
00229 {
00230 return FLEA::getDBO($dsn);
00231 }
00232
00241 function parse_dsn($dsnString)
00242 {
00243 return FLEA::parseDSN($dsnString);
00244 }
00245
00251 function __FLEA_PREPARE()
00252 {
00253 FLEA::init();
00254 }
00255
00261 function run()
00262 {
00263 FLEA::runMVC();
00264 }
00265
00272 function & init_ajax()
00273 {
00274 return FLEA::initAjax();
00275 }
00276
00283 function & init_webcontrols()
00284 {
00285 return FLEA::initWebControls();
00286 }