PHP Class TagLib, thinksns

Afficher le fichier Open project: medz/thinksns-4 Class Usage Examples

Protected Properties

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

Méthodes publiques

Méthode 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 méthode

架构函数
public __construct ( )

_initialize() public méthode

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

autoBuildVar() public méthode

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

getTagAttrList() public méthode

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

getTagLib() public méthode

获取TagLib名称
public getTagLib ( ) : string
Résultat string

getTagList() public méthode

获取Tag列表
public getTagList ( ) : string
Résultat string

load() public méthode

载入模板文件
public load ( )

parseCondition() public méthode

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

parseThinkVar() public méthode

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

parseXmlAttr() public méthode

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

valid() public méthode

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

Property Details

$comparison protected_oe property

protected $comparison

$parse protected_oe property

标签库分析数组
protected string $parse
Résultat string

$tagLib protected_oe property

标签库名称
protected string $tagLib
Résultat string

$tagList protected_oe property

标签库标签列表
protected string $tagList
Résultat string

$tpl protected_oe property

当前模板对象
protected object $tpl
Résultat object

$valid protected_oe property

标签库是否有效
protected string $valid
Résultat string

$xml protected_oe property

标签库定义XML文件
protected string $xml
Résultat string