PHP Class TagLib, thinksns

Mostra file Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

Property Type Description
$comparison
$parse string 标签库分析数组
$tagLib string 标签库名称
$tagList string 标签库标签列表
$tpl object 当前模板对象
$valid string 标签库是否有效
$xml string 标签库定义XML文件

Public Methods

Method Description
__construct ( ) 架构函数
_initialize ( ) 初始化标签库的定义文件
autoBuildVar ( string $name ) : string 自动识别构建变量
getTagAttrList ( $tagName ) : string 获取某个Tag属性的信息
getTagLib ( ) : string 获取TagLib名称
getTagList ( ) : string 获取Tag列表
load ( ) 载入模板文件
parseCondition ( string $condition ) : array 解析条件表达式
parseThinkVar ( string $varStr ) : string 用于标签属性里面的特殊模板变量解析 格式 以 Think. 打头的变量属于特殊模板变量
parseXmlAttr ( $attr, $tag ) : array TagLib标签属性分析 返回标签属性数组
valid ( ) : string 分析TagLib文件的信息是否有效 有效则转换成数组

Method Details

__construct() public method

架构函数
public __construct ( )

_initialize() public method

初始化标签库的定义文件
public _initialize ( )

autoBuildVar() public method

自动识别构建变量
public autoBuildVar ( string $name ) : string
$name string 变量描述
return string

getTagAttrList() public method

获取某个Tag属性的信息
public getTagAttrList ( $tagName ) : string
return string

getTagLib() public method

获取TagLib名称
public getTagLib ( ) : string
return string

getTagList() public method

获取Tag列表
public getTagList ( ) : string
return string

load() public method

载入模板文件
public load ( )

parseCondition() public method

解析条件表达式
public parseCondition ( string $condition ) : array
$condition string 表达式标签内容
return array

parseThinkVar() public method

用于标签属性里面的特殊模板变量解析 格式 以 Think. 打头的变量属于特殊模板变量
public parseThinkVar ( string $varStr ) : string
$varStr string 变量字符串
return string

parseXmlAttr() public method

TagLib标签属性分析 返回标签属性数组
public parseXmlAttr ( $attr, $tag ) : array
return array

valid() public method

分析TagLib文件的信息是否有效 有效则转换成数组
public valid ( ) : string
return string

Property Details

$comparison protected_oe property

protected $comparison

$parse protected_oe property

标签库分析数组
protected string $parse
return string

$tagLib protected_oe property

标签库名称
protected string $tagLib
return string

$tagList protected_oe property

标签库标签列表
protected string $tagList
return string

$tpl protected_oe property

当前模板对象
protected object $tpl
return object

$valid protected_oe property

标签库是否有效
protected string $valid
return string

$xml protected_oe property

标签库定义XML文件
protected string $xml
return string