phpDocumentor router
route
[ class tree: router ] [ index: router ] [ all elements ]

Class: AbstractWindRoute

Source Location: /router/route/AbstractWindRoute.php

Class AbstractWindRoute

Class Overview

路由协议

职责: 1. url匹配并解析url生成参数列表; 2. 根据解析规则反向构建url <note>注意:路由协议类是继承了拦截过滤器的接口实现,实现多路由协议支持</note>

Located in /router/route/AbstractWindRoute.php [line 14]

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

Information Tags:
Version:  $Id: AbstractWindRoute.php 3330 2012-01-15 13:49:24Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Descendants
Child Class Description
WindRewriteRoute 基于rewrite和二级域名的路由协议

[ 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 ]
Property Summary
mixed   $params  
mixed   $pattern  
mixed   $reverse  

[ Top ]
Method Summary
string   build()   根据匹配的路由规则,构建Url
array   match()   路由规则匹配方法,返回匹配到的参数列表
void   postHandle()  
void   preHandle()  
void   setConfig()  

[ Top ]
Properties
mixed   $params = array() [line 17]
API Tags:
Access:  protected


Redefined in descendants as:

[ Top ]
mixed   $pattern = '' [line 15]
API Tags:
Access:  protected


Redefined in descendants as:

[ Top ]
mixed   $reverse = '' [line 16]
API Tags:
Access:  protected


Redefined in descendants as:

[ Top ]
Methods
build  [line 27]

  string build( AbstractWindRouter $router, string $action, [array $args = array()]  )

根据匹配的路由规则,构建Url

Parameters:
AbstractWindRouter   $router: 
string   $action: 
array   $args: 

API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
match  [line 35]

  array match( WindHttpRequest $request  )

路由规则匹配方法,返回匹配到的参数列表

Parameters:
WindHttpRequest   $request: 

API Tags:
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
postHandle  [line 47]

  void postHandle( )


API Tags:
Access:  public


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

[ Top ]
preHandle  [line 40]

  void preHandle( [ $request = null]  )

Parameters:
   $request: 

API Tags:
Access:  public


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

[ Top ]
setConfig  [line 52]

  void setConfig( $config  )

Parameters:
   $config: 

API Tags:
Access:  public


Redefinition of:
WindModule::setConfig()
设置类配置

Redefined in descendants as:

[ Top ]

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