« Yaf_Request_Abstract::setRouted
Yaf_Request_Http::__construct »
Bejson.com
PHP Manual
Yaf
The Yaf_Request_Http class
The Yaf_Request_Http class
(Yaf >=1.0.0)
简介
类摘要
class
Yaf_Request_Http
extends
Yaf_Request_Abstract
{
/* 属性 */
/* 方法 */
__construct
()
public
get
(
string
$name
,
string
$default
= ?
):
mixed
public
getCookie
(
string
$name
,
string
$default
= ?
):
mixed
public
getFiles
():
void
public
getPost
(
string
$name
,
string
$default
= ?
):
mixed
public
getQuery
(
string
$name
,
string
$default
= ?
):
mixed
public
getRaw
():
mixed
public
getRequest
():
void
public
isXmlHttpRequest
():
bool
/* 继承的方法 */
public
Yaf_Request_Abstract::clearParams
():
bool
public
Yaf_Request_Abstract::getActionName
():
void
public
Yaf_Request_Abstract::getBaseUri
():
void
public
Yaf_Request_Abstract::getControllerName
():
void
public
Yaf_Request_Abstract::getEnv
(
string
$name
,
string
$default
= ?
):
void
public
Yaf_Request_Abstract::getException
():
void
public
Yaf_Request_Abstract::getLanguage
():
void
public
Yaf_Request_Abstract::getMethod
():
void
public
Yaf_Request_Abstract::getModuleName
():
void
public
Yaf_Request_Abstract::getParam
(
string
$name
,
string
$default
= ?
):
void
public
Yaf_Request_Abstract::getParams
():
void
public
Yaf_Request_Abstract::getRequestUri
():
void
public
Yaf_Request_Abstract::getServer
(
string
$name
,
string
$default
= ?
):
void
public
Yaf_Request_Abstract::isCli
():
void
public
Yaf_Request_Abstract::isDispatched
():
void
public
Yaf_Request_Abstract::isGet
():
void
public
Yaf_Request_Abstract::isHead
():
void
public
Yaf_Request_Abstract::isOptions
():
void
public
Yaf_Request_Abstract::isPost
():
void
public
Yaf_Request_Abstract::isPut
():
void
public
Yaf_Request_Abstract::isRouted
():
void
public
Yaf_Request_Abstract::isXmlHttpRequest
():
void
public
Yaf_Request_Abstract::setActionName
(
string
$action
):
void
public
Yaf_Request_Abstract::setBaseUri
(
string
$uir
):
void
public
Yaf_Request_Abstract::setControllerName
(
string
$controller
):
void
public
Yaf_Request_Abstract::setDispatched
():
void
public
Yaf_Request_Abstract::setModuleName
(
string
$module
):
void
public
Yaf_Request_Abstract::setParam
(
string
$name
,
string
$value
= ?
):
void
public
Yaf_Request_Abstract::setRequestUri
(
string
$uir
):
void
public
Yaf_Request_Abstract::setRouted
(
string
$flag
= ?
):
void
}
属性
module
controller
action
method
params
language
_exception
_base_uri
uri
dispatched
routed
目录
Yaf_Request_Http::__construct
— The __construct purpose
Yaf_Request_Http::get
— 从客户端返回变量
Yaf_Request_Http::getCookie
— 返回Cookie变量
Yaf_Request_Http::getFiles
— The getFiles purpose
Yaf_Request_Http::getPost
— 返回POST变量
Yaf_Request_Http::getQuery
— fetch a query parameter
Yaf_Request_Http::getRaw
— Retrieve Raw request body
Yaf_Request_Http::getRequest
— The getRequest purpose
Yaf_Request_Http::isXmlHttpRequest
— 是否为Ajax请求