最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP静态类
时间:2008-04-24 编辑:简简单单 来源:一聚教程网
{
var $Templet;
var $DataSource;
var $Dir;
var $fileName;
var $mod;
var $handle;
function Shtml($fileName="")
{
$this->fileName=$fileName;
$this->mod="wb";
$this->handle=false;
$this->Templet = "";
$this->DataSource = array();
$this->Dir = "";
}
/// <描述>
/// 绑定数据源,参数为一数组。
/// 描述>
function BindData($arr)
{
$this->DataSource = $arr;
}
/// <描述>
/// 设置文件存放路径。
/// 描述>
function SetDir($dir)
{
$this->Dir = $dir;
}
function SetFileName($fileName)
{
return $this->fileName=$fileName;
}
function GetMod()
{
return $this->mod;
}
function SetMod($mod)
{
return $this->mod=$mod;
}
function Open()
{
if(substr($this->fileName,0,1)=="/")
$this->fileName = $_SERVER[''DOCUMENT_ROOT''] . $this->fileName;
-
上一个: php扩展
-
下一个: PHP静态分析与跨站脚本检测(四)
相关文章
- php中类和对象:静态属性、静态方法 04-13
- 第七节--类的静态成员 -- Classes and Objects in PHP5 [7] 01-11
- PHP导出数据超时的优化建议解读 10-31
- PHP之mysql位运算解析 10-31
- Laravel实现登录跳转功能解析 10-31
- php双向队列解读 10-31