名字空间 | |
| namespace | Core |
函数 | |
| register_app_inf ($__flea_internal_config=null) | |
| get_app_inf ($option) | |
| set_app_inf ($option, $data=null) | |
| import ($dir) | |
| load_file ($filename, $loadOnce=false) | |
| load_class ($className) | |
| get_file_path ($filename, $return=false) | |
| & | get_singleton ($className) |
| & | reg (&$obj, $name=null) |
| & | ref ($name=null) |
| check_reg ($name) | |
| get_cache ($cacheId, $time=900, $timeIsLifetime=true, $cacheIdIsFilename=false) | |
| write_cache ($cacheId, $data, $cacheIdIsFilename=false) | |
| purge_cache ($cacheId, $cacheIdIsFilename=false) | |
| echo_h ($text) | |
| echo_t ($text) | |
| & | get_dbo ($dsn) |
| parse_dsn ($dsnString) | |
| __FLEA_PREPARE () | |
| run () | |
| & | init_ajax () |
| & | init_webcontrols () |
| register_app_inf | ( | $ | __flea_internal_config = null |
) |
| get_app_inf | ( | $ | option | ) |
| set_app_inf | ( | $ | option, | |
| $ | data = null | |||
| ) |
| import | ( | $ | dir | ) |
| load_file | ( | $ | filename, | |
| $ | loadOnce = false | |||
| ) |
| load_class | ( | $ | className | ) |
| get_file_path | ( | $ | filename, | |
| $ | return = false | |||
| ) |
按照 FleaPHP 中命名规则,搜索文件。成功返回文件的完整路径,失败返回 false(已经过时,用 FLEA::getFilePath() 代替)
| string | $filename |
在文件Compatibility.php第100行定义。
| & get_singleton | ( | $ | className | ) |
返回指定对象的唯一实例(已经过时,用 FLEA::getSingleton() 代替)
| string | $className |
在文件Compatibility.php第113行定义。
| & reg | ( | &$ | obj, | |
| $ | name = null | |||
| ) |
将一个对象实例注册到对象实例容器(已经过时,用 FLEA::register() 代替)
| object | $obj | |
| string | $name |
在文件Compatibility.php第127行定义。
参考 FLEA::register().
| & ref | ( | $ | name = null |
) |
从对象实例容其中取出指定名字的对象实例(已经过时,用 FLEA::registry() 代替)
| string | $name |
在文件Compatibility.php第140行定义。
参考 FLEA::registry().
| check_reg | ( | $ | name | ) |
检查指定名字的对象是否已经注册(已经过时,用 FLEA::isRegistered() 代替)
| string | $name |
在文件Compatibility.php第153行定义。
| get_cache | ( | $ | cacheId, | |
| $ | time = 900, |
|||
| $ | timeIsLifetime = true, |
|||
| $ | cacheIdIsFilename = false | |||
| ) |
读取指定缓存的内容,如果缓存内容不存在或失效,则返回 false(已经过时,用 FLEA::getCache() 代替)
| string | $cacheId 缓存ID,不同的缓存内容应该使用不同的ID | |
| int | $time 缓存过期时间或缓存生存周期 | |
| boolean | $timeIsLifetime 指示 $time 参数的作用 |
在文件Compatibility.php第168行定义。
参考 FLEA::getCache().
| write_cache | ( | $ | cacheId, | |
| $ | data, | |||
| $ | cacheIdIsFilename = false | |||
| ) |
将变量内容写入缓存(已经过时,用 FLEA::writeCache() 代替)
| string | $cacheId | |
| mixed | $data |
在文件Compatibility.php第182行定义。
| purge_cache | ( | $ | cacheId, | |
| $ | cacheIdIsFilename = false | |||
| ) |
| echo_h | ( | $ | text | ) |
输出转换 HTML 特殊字符后的文本,等同于 echo h($text)(已经过时,用 echo h() 代替)
| string | $text |
在文件Compatibility.php第204行定义。
| echo_t | ( | $ | text | ) |
输出转换 HTML 特殊字符、空格和换行符后的文本,等同于 echo t($text)(已经过时,用 echo t() 代替)
| string | $text |
在文件Compatibility.php第215行定义。
参考 t().
| & get_dbo | ( | $ | dsn | ) |
返回数据库访问对象实例(已经过时,用 FLEA::getDBO() 代替)
| array | $dsn |
在文件Compatibility.php第228行定义。
参考 FLEA::getDBO().
| parse_dsn | ( | $ | dsnString | ) |
分析 DSN 字符串,返回包含 DSN 连接信息的数组,失败返回 false(已经过时,用 FLEA::parseDSN() 代替)
| string | $dsnString |
在文件Compatibility.php第241行定义。
参考 FLEA::parseDSN().
| __FLEA_PREPARE | ( | ) |
准备运行环境:载入配置文件、运行过滤器、处理 session 等(已经过时,用 FLEA::init() 代替)
在文件Compatibility.php第251行定义。
参考 FLEA::init().
| run | ( | ) |
| & init_ajax | ( | ) |
初始化 Ajax,返回 FLEA_Ajax 对象实例(已经过时,用 FLEA::initAjax() 代替)
在文件Compatibility.php第272行定义。
参考 FLEA::initAjax().
| & init_webcontrols | ( | ) |
初始化 WebControls,返回 FLEA_WebControls 对象实例(已经过时,用 FLEA::initWebControls 代替)
在文件Compatibility.php第283行定义。
1.5.3