Request_Abstract
abstract class Request_Abstract (View source)
Constants
SCHEME_HTTP |
|
SCHEME_HTTPS |
|
Properties
string | $module | ||
string | $controller | ||
string | $action | ||
string | $method | ||
protected array | $params | ||
protected string | $language | ||
protected Exception | $_exception | ||
protected string | $_base_uri | ||
protected string | $uri | ||
protected string | $dispatched | ||
protected string | $routed |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
Retrieve $_SERVER variable
Retrieve $_ENV variable
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Set base URI, base URI is used when doing routing, in routing phase request URI is used to route a request, while base URI is used to skip the leading part(base URI) of request URI. That is, if comes a request with request URI a/b/c, then if you set base URI to "a/b", only "/c" will be used in routing phase.
Note:
generally, you don't need to set this, Yaf will determine it automatically.
No description
No description
No description
Set request as dispatched
Set request as routed
Details
bool
isGet()
No description
bool
isPost()
No description
bool
isPut()
No description
bool
isHead()
No description
bool
isOptions()
No description
bool
isCli()
No description
bool
isDispatched()
No description
bool
isRouted()
No description
bool
isXmlHttpRequest()
No description
mixed
getServer(string $name = null, mixed $default = null)
Retrieve $_SERVER variable
mixed
getEnv(string $name = null, mixed $default = null)
Retrieve $_ENV variable
mixed
getParam(string $name, mixed $default = null)
No description
array
getParams()
No description
Exception
getException()
No description
string
getModuleName()
No description
string
getControllerName()
No description
string
getActionName()
No description
Request_Abstract|bool
setParam(string|array $name, string $value = null)
No description
Request_Abstract|bool
setModuleName(string $module)
No description
Request_Abstract|bool
setControllerName(string $controller)
No description
Request_Abstract|bool
setActionName(string $action)
No description
string
getMethod()
No description
string
getLanguage()
No description
bool
setBaseUri(string $uri)
Set base URI, base URI is used when doing routing, in routing phase request URI is used to route a request, while base URI is used to skip the leading part(base URI) of request URI. That is, if comes a request with request URI a/b/c, then if you set base URI to "a/b", only "/c" will be used in routing phase.
Note:
generally, you don't need to set this, Yaf will determine it automatically.
string
getBaseUri()
No description
string
getRequestUri()
No description
setRequestUri(string $uri)
No description
bool
setDispatched()
Set request as dispatched
Request_Abstract|bool
setRouted()
Set request as routed