# Yaf_Request_Simple 类

(Yaf >=1.0.0)

## 简介

Yaf_Request_Simple 特别的被用于测试。例如：CLI模式下模拟一些特殊的请求。

## 类摘要

class Yaf_Request_Simple extends Yaf_Request_Abstract {
/* 常量 */
const string SCHEME_HTTP = http;
const string SCHEME_HTTPS = https;
/* 属性 */
/* 方法 */
public function __construct(
string `$method` = ?,
string `$module` = ?,
string `$controller` = ?,
string `$action` = ?,
array `$params` = ?
)
public function get(): void
public function getCookie(): void
public function getFiles(): void
public function getPost(): void
public function getQuery(): void
public function getRequest(): void
public function isXmlHttpRequest(): void
/* 继承的方法 */
public function Yaf_Request_Abstract::clearParams(): bool
public function Yaf_Request_Abstract::getActionName(): void
public function Yaf_Request_Abstract::getBaseUri(): void
public function Yaf_Request_Abstract::getControllerName(): void
public function Yaf_Request_Abstract::getEnv(string `$name`, string `$default` = ?): void
public function Yaf_Request_Abstract::getException(): void
public function Yaf_Request_Abstract::getLanguage(): void
public function Yaf_Request_Abstract::getMethod(): string
public function Yaf_Request_Abstract::getModuleName(): void
public function Yaf_Request_Abstract::getParam(string `$name`, string `$default` = ?): mixed
public function Yaf_Request_Abstract::getParams(): array
public function Yaf_Request_Abstract::getRequestUri(): void
public function Yaf_Request_Abstract::getServer(string `$name`, string `$default` = ?): void
public function Yaf_Request_Abstract::isCli(): bool
public function Yaf_Request_Abstract::isDispatched(): bool
public function Yaf_Request_Abstract::isGet(): bool
public function Yaf_Request_Abstract::isHead(): bool
public function Yaf_Request_Abstract::isOptions(): bool
public function Yaf_Request_Abstract::isPost(): bool
public function Yaf_Request_Abstract::isPut(): bool
public function Yaf_Request_Abstract::isRouted(): bool
public function Yaf_Request_Abstract::isXmlHttpRequest(): bool
public function Yaf_Request_Abstract::setActionName(string `$action`, bool `$format_name` = true): void
public function Yaf_Request_Abstract::setBaseUri(string `$uir`): bool
public function Yaf_Request_Abstract::setControllerName(string `$controller`, bool `$format_name` = true): void
public function Yaf_Request_Abstract::setDispatched(): void
public function Yaf_Request_Abstract::setModuleName(string `$module`, bool `$format_name` = true): void
public function Yaf_Request_Abstract::setParam(string `$name`, string `$value` = ?): bool
public function Yaf_Request_Abstract::setRequestUri(string `$uir`): void
public function Yaf_Request_Abstract::setRouted(string `$flag` = ?): void
}

## 属性

module

controller

action

method

params

language

_exception

_base_uri

uri

dispatched

routed

## 预定义常量

`Yaf_Request_Simple::SCHEME_HTTP`

`Yaf_Request_Simple::SCHEME_HTTPS`

## 目录

- Yaf_Request_Simple::__construct — Yaf_Request_Simple 构造方法
- Yaf_Request_Simple::get — The get purpose
- Yaf_Request_Simple::getCookie — The getCookie purpose
- Yaf_Request_Simple::getFiles — The getFiles purpose
- Yaf_Request_Simple::getPost — The getPost purpose
- Yaf_Request_Simple::getQuery — The getQuery purpose
- Yaf_Request_Simple::getRequest — The getRequest purpose
- Yaf_Request_Simple::isXmlHttpRequest — 判断请求是否是 Ajax 请求

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open