PHP Class TagsAbstract, thinksns

Author: Stream
Datei anzeigen Open project: medz/thinksns-4

Protected Properties

Property Type Description
$attr 模板文件名
$sign 缓存文件路径
$templateFile
$tmplCacheFile 如果是嵌套格式,则为内部数据
$value 属性

Public Methods

Method Description
getTemplateFile ( $tpl = '' ) 解析
parseTag ( unknown_type $attr, unknown_type $value = '', unknown_type $tagInfo ) : string 保存模块数据到数据库
replace ( ) 替换
replaceTag ( unknown_type $attr, unknown_type $value = '', unknown_type $tagInfo ) : Ambigous 编译并返回内容

Protected Methods

Method Description
init ( unknown_type $attr, unknown_type $value = '' ) 参数赋值
replaceContent ( $content )

Method Details

getTemplateFile() abstract public method

解析
abstract public getTemplateFile ( $tpl = '' )

init() protected method

参数赋值
protected init ( unknown_type $attr, unknown_type $value = '' )
$attr unknown_type
$value unknown_type

parseTag() public method

保存模块数据到数据库
public parseTag ( unknown_type $attr, unknown_type $value = '', unknown_type $tagInfo ) : string
$attr unknown_type
$value unknown_type
$tagInfo unknown_type
return string

replace() abstract public method

替换
abstract public replace ( )

replaceContent() protected method

protected replaceContent ( $content )

replaceTag() public method

编译并返回内容
public replaceTag ( unknown_type $attr, unknown_type $value = '', unknown_type $tagInfo ) : Ambigous
$attr unknown_type
$value unknown_type
$tagInfo unknown_type
return Ambigous |string

Property Details

$attr protected_oe property

模板文件名
protected $attr

$sign protected_oe property

缓存文件路径
protected $sign

$templateFile protected_oe property

protected $templateFile

$tmplCacheFile protected_oe property

如果是嵌套格式,则为内部数据
protected $tmplCacheFile

$value protected_oe property

属性
protected $value