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

Class: WindHandlerInterceptor

Source Location: /filter/WindHandlerInterceptor.php

Class WindHandlerInterceptor

Class Overview

拦截器基类

该类是拦截器机制的核心实现,提供接口:

  • preHandle(): 抽象接口,前置操作,需要子类实现
  • postHandle(): 抽象接口,后置操作,需要子类实现
  • handle(): 入口接口,调用拦截器的实现.
该拦截器需要配合拦截链WindHandlerInterceptorChain实现真正的拦截链.

the last known user to change this file in the repository <$LastChangedBy: yishuo $>

Located in /filter/WindHandlerInterceptor.php [line 20]

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

Information Tags:
Version:  $Id: WindHandlerInterceptor.php 3113 2011-11-11 07:28:09Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Descendants
Child Class Description
AbstractWindRoute 路由协议
WindDaoCacheListener DB层的缓存监听类
AbstractWindTemplateCompiler 模板标签解析器
WindActionFilter action拦截器父类

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

Inherited From WindModule

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

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 ]
Property Summary
WindHandlerInterceptorChain   $interceptorChain   保存拦截链
mixed   $result   保存执行的结果

[ Top ]
Method Summary
mixed   handle()   拦截器的执行入口
void   postHandle()   拦截器的后置操作
null|mixed   preHandle()   拦截器的前置操作
void   setHandlerInterceptorChain()   设置拦截链对象

[ Top ]
Properties
WindHandlerInterceptorChain   $interceptorChain = null [line 34]

保存拦截链

用以传递控制到下一个拦截器

API Tags:
Access:  protected


[ Top ]
mixed   $result = null [line 26]

保存执行的结果

API Tags:
Access:  protected


[ Top ]
Methods
handle  [line 57]

  mixed handle( mixed $var=..  )

拦截器的执行入口

Parameters:
mixed   $var=..:  该接口接受任意参数,并将依次传递给拦截器的前置和后置操作

API Tags:
Return:  返回拦截链执行的最终结果
Access:  public


Redefined in descendants as:

[ Top ]
postHandle  [line 49]

  void postHandle( mixed $var=..  )

拦截器的后置操作

Parameters:
mixed   $var=..:  参数列表将会从handle接口中传递继承

API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
preHandle  [line 42]

  null|mixed preHandle( mixed $var=..  )

拦截器的前置操作

Parameters:
mixed   $var=..:  参数列表将会从handle接口中传递继承

API Tags:
Return:  如果返回为null则将会继续执行下一个拦截器,如果返回不为null则会中断拦截链的执行
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
setHandlerInterceptorChain  [line 77]

  void setHandlerInterceptorChain( WindHandlerInterceptorChain $interceptorChain  )

设置拦截链对象

Parameters:
WindHandlerInterceptorChain   $interceptorChain: 

API Tags:
Access:  public


[ Top ]

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