phpDocumentor viewer
[ class tree: viewer ] [ index: viewer ] [ all elements ]

Class: AbstractWindTemplateCompiler

Source Location: /viewer/AbstractWindTemplateCompiler.php

Class AbstractWindTemplateCompiler

Class Overview

模板标签解析器

可以通过继承该抽象类,扩展模板的标签解析.在扩展模板的标签解析时实现'compile'方法即可. 该方法接收一段match到的标签内容进行解析操作并返回解析后的结果.

Located in /viewer/AbstractWindTemplateCompiler.php [line 13]

WindModule
   |
   --WindHandlerInterceptor
      |
      --AbstractWindTemplateCompiler
Author(s): API Tags:
Abstract:  

Information Tags:
Version:  $Id: AbstractWindTemplateCompiler.php 3389 2012-03-12 15:44:22Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Descendants
Child Class Description
WindTemplateCompilerPage page标签解析
WindTemplateCompilerToken 输出安全令牌隐藏域
WindTemplateCompilerScript 编译javascript标签
WindTemplateCompilerTemplate 编译模板标签
WindTemplateCompilerLang 输出翻译后的语言信息
WindTemplateCompilerInternal
WindTemplateCompilerCss css标签编译器
WindTemplateCompilerComponent 组件标签编译器
WindTemplateCompilerEcho 变量输出编译类
WindTemplateCompilerAction <doAction /> 标签解析脚本

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From WindHandlerInterceptor

WindHandlerInterceptor::$interceptorChain
WindHandlerInterceptor::$result

Inherited From WindModule

WindModule::$_config
WindModule::$_proxy
WindModule::$_typeValidation

Inherited From WindHandlerInterceptor

WindHandlerInterceptor::handle()
拦截器的执行入口
WindHandlerInterceptor::postHandle()
拦截器的后置操作
WindHandlerInterceptor::preHandle()
拦截器的前置操作
WindHandlerInterceptor::setHandlerInterceptorChain()
设置拦截链对象

Inherited From WindModule

WindModule::getConfig()
根据配置名取得相应的配置
WindModule::getRequest()
返回当前应用的WindHttpRequest对象
WindModule::getResponse()
返回当前应用的WindHttpResponse对象
WindModule::getSystemFactory()
返回当前应用的WindFactory对象
WindModule::setConfig()
设置类配置
WindModule::setDelayAttributes()
设置延迟加载类属性相关组件配置信息
WindModule::toArray()
返回该对象的数组类型
WindModule::writeTableCloneProperty()
类对象clone白名单
WindModule::__call()
重载了魔术方法__call
WindModule::__clone()
重载魔术方法__clone
WindModule::__get()
重载了魔术方法__get
WindModule::__set()
重载了魔术方法__set

[ Top ]
Method Summary
AbstractWindTemplateCompiler   __construct()   初始化标签解析器
string   compile()   内容编译,接受一段落内容进行编译处理并返回编译内容
void   compileProperty()   解析标签属性值
array   getProperties()   返回该标签支持的属性列表,需要覆盖该方法实现对标签的解析支持
WindViewTemplate   getWindViewTemplate()  
void   handle()  
void   postCompile()   编译后处理结果
void   postHandle()  
void   preCompile()   编译前预处理
void   preHandle()  

[ Top ]
Properties
WindHttpRequest   $request = null [line 29]
API Tags:
Access:  protected


[ Top ]
WindHttpResponse   $response = null [line 33]
API Tags:
Access:  protected


[ Top ]
array   $tags = array() [line 17]
API Tags:
Access:  protected


[ Top ]
WindViewerResolver   $windViewerResolver = null [line 25]
API Tags:
Access:  protected


[ Top ]
WindViewTemplate   $windViewTemplate = null [line 21]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 44]

  AbstractWindTemplateCompiler __construct( string $tags, WindViewTemplate $windViewTemplate, WindViewerResolver $windViewerResolver, WindHttpRequest $request, WindHttpResponse $response  )

初始化标签解析器

Parameters:
string   $tags: 
WindViewTemplate   $windViewTemplate: 
WindViewerResolver   $windViewerResolver: 
WindHttpRequest   $request: 
WindHttpResponse   $response: 

API Tags:
Access:  public


[ Top ]
compile  [line 59]

  string compile( string $key, string $content  )

内容编译,接受一段落内容进行编译处理并返回编译内容

Parameters:
string   $key: 
string   $content:  模板内容

API Tags:
Return:  输出编译后结果
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
compileProperty  [line 89]

  void compileProperty( string $content  )

解析标签属性值

Parameters:
string   $content: 

API Tags:
Access:  protected


[ Top ]
getProperties  [line 80]

  array getProperties( )

返回该标签支持的属性列表,需要覆盖该方法实现对标签的解析支持


API Tags:
Access:  protected


Redefined in descendants as:

[ Top ]
getWindViewTemplate  [line 135]

  WindViewTemplate getWindViewTemplate( )


API Tags:
Access:  protected


[ Top ]
handle  [line 123]

  void handle( )


API Tags:
Access:  public


Redefinition of:
WindHandlerInterceptor::handle()
拦截器的执行入口

[ Top ]
postCompile  [line 73]

  void postCompile( )

编译后处理结果


API Tags:
Access:  protected


[ Top ]
postHandle  [line 118]

  void postHandle( )


API Tags:
Access:  public


Redefinition of:
WindHandlerInterceptor::postHandle()
拦截器的后置操作

[ Top ]
preCompile  [line 66]

  void preCompile( )

编译前预处理


API Tags:
Access:  protected


[ Top ]
preHandle  [line 103]

  void preHandle( )


API Tags:
Access:  public


Redefinition of:
WindHandlerInterceptor::preHandle()
拦截器的前置操作

[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:26 +0800 by phpDocumentor 1.4.4