ZMObject
└─ZMView
└─ZMRedirectView
public class ZMRedirectView
extends ZMView
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| protected mixed | |
| protected mixed | |
| protected mixed | |
| Constructor Summary | |
|---|---|
Create a new redirect view. |
|
| Method Summary | |
|---|---|
| string | fetch(mixed request, string template, request The) {@inheritDoc} |
| string | {@inheritDoc} |
| void | setParameter(string parameter) Set additional parameter. |
| void | setRequestId(string requestId) Set the request id. |
| void | setSecure(boolean secure) Set secure flag. |
| void | setStatus(int status) Set alternative status code. |
| void | setUrl(string url) Set a url. |
| Methods inherited from org.zenmagick.mvc.view.ZMView | |
|---|---|
| fetch, generate, getContentType, getEncoding, getTemplate, getVars, getViewId, isValid, setTemplate, setVar, setVars, setViewId | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
protected mixed $parameter_
protected mixed $requestId_
protected mixed $secure_
protected mixed $status_
protected mixed $url_
public ZMRedirectView()
Create a new redirect view.
public string fetch(mixed request, string template, request The)
public string generate(ZMRequest request)
public void setParameter(string parameter)
Set additional parameter.
public void setRequestId(string requestId)
Set the request id.
public void setSecure(boolean secure)
Set secure flag.
true to create a secure redirect.public void setStatus(int status)
Set alternative status code.
Allows to set an alternative 3xx status code for the redirect.
public void setUrl(string url)
Set a url.
Setting a url will override the view. The URL will be used as is.
Redirect view.
The redirect URL may be set by explicitely setting a url or a request Id. If a request Id is set, the toolbox will be used to generate a full URL.