# A classe Yaf_Request_Simple

(Yaf >=1.0.0)

## Introdução

Yaf_Request_Simple é usada em particular para propósito de testes. Ou seja, simular uma requisição especial no modo CLI.

## Resumo da classe

class Yaf_Request_Simple extends Yaf_Request_Abstract {
/* Constantes */
const string SCHEME_HTTP = http;
const string SCHEME_HTTPS = https;
/* Propriedades */
/* Métodos */
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
/* Métodos herdados */
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
}

## Propriedades

module

controller

action

method

params

language

_exception

_base_uri

uri

dispatched

routed

## Constantes predefinidas

`Yaf_Request_Simple::SCHEME_HTTP`

`Yaf_Request_Simple::SCHEME_HTTPS`

## Índice

- Yaf_Request_Simple::__construct — Construtor de Yaf_Request_Simple
- Yaf_Request_Simple::get — get
- Yaf_Request_Simple::getCookie — getCookie
- Yaf_Request_Simple::getFiles — getFiles
- Yaf_Request_Simple::getPost — getPost
- Yaf_Request_Simple::getQuery — getQuery
- Yaf_Request_Simple::getRequest — getRequest
- Yaf_Request_Simple::isXmlHttpRequest — Informa se a requisição é Ajax

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