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

Class: WindDispatcher

Source Location: /web/WindDispatcher.php

Class WindDispatcher

Class Overview

请求分发重定向处理类

通过该类进行请求的分发以及重定向,请求分发有三种分发类型:'重定向类型','重定向到新的action处理操作','视图渲染'.

Located in /web/WindDispatcher.php [line 12]

WindModule
   |
   --WindDispatcher
Author(s): Information Tags:
Version:  $Id: WindDispatcher.php 3389 2012-03-12 15:44:22Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ 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
mixed   $display  
array   $maxForwrd   存储请求的队列信息

[ Top ]
Method Summary
void   dispatch()  
void   dispatchWithAction()   重定向请求到新的action操作
void   dispatchWithRedirect()   重定向请求到新的url地址

[ Top ]
Properties
mixed   $display = false [line 19]
API Tags:
Access:  protected


[ Top ]
array   $maxForwrd = array() [line 18]

存储请求的队列信息

API Tags:
Access:  protected


[ Top ]
Methods
dispatch  [line 27]

  void dispatch( WindForward $forward, WindRouter $router, boolean $display  )

Parameters:
WindForward   $forward: 
WindRouter   $router: 
boolean   $display: 

API Tags:
Access:  public


[ Top ]
dispatchWithAction  [line 76]

  void dispatchWithAction( WindForward $forward, WindRouter $router, boolean $display  )

重定向请求到新的action操作

该种重定向类型,是中断当前的请求执行过程,开启另外的action操作处理.是在一次请求内部进行重定向, 所以之前的一些处理的结果变量,在重定向后是会继续存在,并可通过forward变量进行访问的.也就是不仅仅是过程的重定向, 也是状态的重定向.

Parameters:
WindForward   $forward: 
WindRouter   $router: 
boolean   $display: 

API Tags:
Access:  protected


[ Top ]
dispatchWithRedirect  [line 57]

  void dispatchWithRedirect( WindForward $forward, AbstractWindRouter $router  )

重定向请求到新的url地址

重定向请求到新的url地址是通过head方式重新开启一个url访问请求.

Parameters:
WindForward   $forward: 
AbstractWindRouter   $router: 

API Tags:
Access:  protected


[ Top ]

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