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

Class: WindForward

Source Location: /web/WindForward.php

Class WindForward

Class Overview

操作转发类,该类携带了操作转发信息以及后续处理信息给主应用控制器

所有的操作处理类中,都默认包含了一个WindForward对象,当操作处理结束后返回该对象给主应用控制器. 该类中包含了,变量信息,视图处理信息,跳转信息布局信息等.

Located in /web/WindForward.php [line 13]

WindModule
   |
   --WindForward
Author(s): Information Tags:
Version:  $Id: WindForward.php 3253 2011-12-19 10:10:03Z 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
WindView   $windView   定义视图处理器

[ Top ]
Method Summary
void   forwardAction()   将请求重定向到另外一个Action操作
void   forwardRedirect()   url重定向
string   getAction()  
array   getArgs()  
boolean   getIsReAction()  
boolean   getIsRedirect()  
string   getUrl()  
mixed   getVars()   返回当前forward对象中存储的变量信息
WindView   getWindView()  
void   setAction()  
void   setArgs()  
void   setIsReAction()  
void   setIsRedirect()  
void   setUrl()  
void   setVars()   设置当前forward对象中存储的变量
void   setWindView()  

[ Top ]
Properties
WindView   $windView = null [line 19]

定义视图处理器

API Tags:
Access:  protected


[ Top ]
Methods
forwardAction  [line 58]

  void forwardAction( string $action, [array $args = array()], [boolean $isRedirect = false], [boolean $immediately = true]  )

将请求重定向到另外一个Action操作

参数支持格式:module/controller/action/?a=&b=&c=

Parameters:
string   $action:  $action 操作
array   $args:  参数 默认为空数组
boolean   $isRedirect:  是否重定向 默认为false
boolean   $immediately:  是否理解重定向 默认为true

API Tags:
Access:  public

Information Tags:
Throws:  WindForwardException

[ Top ]
forwardRedirect  [line 74]

  void forwardRedirect( string $url  )

url重定向

采用head方式,将当前的请求重定向到新的url地址

Parameters:
string   $url:  重定向的url地址

API Tags:
Access:  public

Information Tags:
Throws:  WindForwardException

[ Top ]
getAction  [line 181]

  string getAction( )


API Tags:
Access:  public


[ Top ]
getArgs  [line 195]

  array getArgs( )


API Tags:
Access:  public


[ Top ]
getIsReAction  [line 153]

  boolean getIsReAction( )


API Tags:
Access:  public


[ Top ]
getIsRedirect  [line 139]

  boolean getIsRedirect( )


API Tags:
Access:  public


[ Top ]
getUrl  [line 167]

  string getUrl( )


API Tags:
Access:  public


[ Top ]
getVars  [line 104]

  mixed getVars( )

返回当前forward对象中存储的变量信息

返回当前forward对象中存储的变量信息,支持多个参数,当参数为空时返回全部的变量信息


API Tags:
Access:  public


[ Top ]
getWindView  [line 118]

  WindView getWindView( )


API Tags:
Access:  public


[ Top ]
setAction  [line 188]

  void setAction( string $action  )

Parameters:
string   $action: 

API Tags:
Access:  public


[ Top ]
setArgs  [line 202]

  void setArgs( array $args  )

Parameters:
array   $args: 

API Tags:
Access:  public


[ Top ]
setIsReAction  [line 160]

  void setIsReAction( boolean $isReAction  )

Parameters:
boolean   $isReAction: 

API Tags:
Access:  public


[ Top ]
setIsRedirect  [line 146]

  void setIsRedirect( boolean $isRedirect  )

Parameters:
boolean   $isRedirect: 

API Tags:
Access:  public


[ Top ]
setUrl  [line 174]

  void setUrl( string $url  )

Parameters:
string   $url: 

API Tags:
Access:  public


[ Top ]
setVars  [line 88]

  void setVars( string|array|object $vars, [string $key = ''], [ $merge = false]  )

设置当前forward对象中存储的变量

设置当前forward对象中存储的变量,设置到forward中的所有变量都可以在模板页面中被直接访问到

Parameters:
string|array|object    $vars: 
string   $key:  默认为空字符串
   $merge: 

API Tags:
Access:  public


[ Top ]
setWindView  [line 132]

  void setWindView( WindView $windView  )

Parameters:
WindView   $windView: 

API Tags:
Access:  public


[ Top ]

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