Compatibility.php文件参考

浏览该文件的源代码。

名字空间

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  ) 

注册应用程序设置(已经过时,用 FLEA::loadAppInf() 代替)

参数:
mixed $__config 配置数组或配置文件名
Deprecated:

在文件Compatibility.php27行定义。

参考 FLEA::loadAppInf().

get_app_inf ( option  ) 

取出指定名字的设置值(已经过时,用 FLEA::getAppInf() 代替)

参数:
string $option
返回:
mixed
Deprecated:

在文件Compatibility.php40行定义。

参考 FLEA::getAppInf().

参考自 FLEA_View_SmartyHelper::FLEA_View_SmartyHelper().

set_app_inf ( option,
data = null 
)

修改设置值(已经过时,用 FLEA::setAppInf() 代替)

参数:
string $option
mixed $data
Deprecated:

在文件Compatibility.php52行定义。

参考 FLEA::setAppInf().

import ( dir  ) 

增加文件搜索路径(已经过时,用 FLEA::import() 代替)

参数:
string $dir
Deprecated:

在文件Compatibility.php63行定义。

参考 FLEA::import().

load_file ( filename,
loadOnce = false 
)

载入指定的文件(已经过时,用 FLEA::loadFile() 代替)

返回:
boolean
Deprecated:

在文件Compatibility.php74行定义。

参考 FLEA::loadFile().

load_class ( className  ) 

载入指定类的定义文件(已经过时,用 FLEA::loadClass() 代替)

参数:
string $filename
返回:
boolean
Deprecated:

在文件Compatibility.php87行定义。

参考 FLEA::loadClass().

get_file_path ( filename,
return = false 
)

按照 FleaPHP 中命名规则,搜索文件。成功返回文件的完整路径,失败返回 false(已经过时,用 FLEA::getFilePath() 代替)

参数:
string $filename
返回:
string
Deprecated:

在文件Compatibility.php100行定义。

参考 FLEA::getFilePath().

& get_singleton ( className  ) 

返回指定对象的唯一实例(已经过时,用 FLEA::getSingleton() 代替)

参数:
string $className
返回:
object
Deprecated:

在文件Compatibility.php113行定义。

参考 FLEA::getSingleton().

& reg ( &$  obj,
name = null 
)

将一个对象实例注册到对象实例容器(已经过时,用 FLEA::register() 代替)

参数:
object $obj
string $name
返回:
object
Deprecated:

在文件Compatibility.php127行定义。

参考 FLEA::register().

& ref ( name = null  ) 

从对象实例容其中取出指定名字的对象实例(已经过时,用 FLEA::registry() 代替)

参数:
string $name
返回:
object
Deprecated:

在文件Compatibility.php140行定义。

参考 FLEA::registry().

check_reg ( name  ) 

检查指定名字的对象是否已经注册(已经过时,用 FLEA::isRegistered() 代替)

参数:
string $name
返回:
boolean
Deprecated:

在文件Compatibility.php153行定义。

参考 FLEA::isRegistered().

get_cache ( cacheId,
time = 900,
timeIsLifetime = true,
cacheIdIsFilename = false 
)

读取指定缓存的内容,如果缓存内容不存在或失效,则返回 false(已经过时,用 FLEA::getCache() 代替)

参数:
string $cacheId 缓存ID,不同的缓存内容应该使用不同的ID
int $time 缓存过期时间或缓存生存周期
boolean $timeIsLifetime 指示 $time 参数的作用
返回:
mixed 返回缓存的内容,缓存不存在或失效则返回 false
Deprecated:

在文件Compatibility.php168行定义。

参考 FLEA::getCache().

write_cache ( cacheId,
data,
cacheIdIsFilename = false 
)

将变量内容写入缓存(已经过时,用 FLEA::writeCache() 代替)

参数:
string $cacheId
mixed $data
返回:
boolean
Deprecated:

在文件Compatibility.php182行定义。

参考 FLEA::writeCache().

purge_cache ( cacheId,
cacheIdIsFilename = false 
)

删除指定的缓存内容(已经过时,用 FLEA::purgeCache() 代替)

参数:
string $cacheId
Deprecated:

在文件Compatibility.php193行定义。

参考 FLEA::purgeCache().

echo_h ( text  ) 

输出转换 HTML 特殊字符后的文本,等同于 echo h($text)(已经过时,用 echo h() 代替)

参数:
string $text
Deprecated:

在文件Compatibility.php204行定义。

echo_t ( text  ) 

输出转换 HTML 特殊字符、空格和换行符后的文本,等同于 echo t($text)(已经过时,用 echo t() 代替)

参数:
string $text
Deprecated:

在文件Compatibility.php215行定义。

参考 t().

& get_dbo ( dsn  ) 

返回数据库访问对象实例(已经过时,用 FLEA::getDBO() 代替)

参数:
array $dsn
返回:
SDBO
Deprecated:

在文件Compatibility.php228行定义。

参考 FLEA::getDBO().

parse_dsn ( dsnString  ) 

分析 DSN 字符串,返回包含 DSN 连接信息的数组,失败返回 false(已经过时,用 FLEA::parseDSN() 代替)

参数:
string $dsnString
返回:
array
Deprecated:

在文件Compatibility.php241行定义。

参考 FLEA::parseDSN().

__FLEA_PREPARE (  ) 

准备运行环境:载入配置文件、运行过滤器、处理 session 等(已经过时,用 FLEA::init() 代替)

Deprecated:

在文件Compatibility.php251行定义。

参考 FLEA::init().

run (  ) 

FLEA 应用程序入口(已经过时,用 FLEA::runMVC() 代替)

Deprecated:

在文件Compatibility.php261行定义。

参考 FLEA::runMVC().

& init_ajax (  ) 

初始化 Ajax,返回 FLEA_Ajax 对象实例(已经过时,用 FLEA::initAjax() 代替)

返回:
FLEA_Ajax
Deprecated:

在文件Compatibility.php272行定义。

参考 FLEA::initAjax().

& init_webcontrols (  ) 

初始化 WebControls,返回 FLEA_WebControls 对象实例(已经过时,用 FLEA::initWebControls 代替)

返回:
FLEA_WebControls
Deprecated:

在文件Compatibility.php283行定义。

参考 FLEA::initWebControls().


Generated at Sat Feb 2 15:18:51 2008 for FleaPHP by  doxygen 1.5.3