2024 年日本 PHP 研討會

Yaf_Request_Simple 類別

(Yaf >=1.0.0)

簡介

Yaf_Request_Simple 類別特別用於測試目的,例如在 CLI 模式下模擬一些特殊的請求。

類別概要

class Yaf_Request_Simple extends Yaf_Request_Abstract {
/* 常數 */
常數 字串 SCHEME_HTTP = http;
常數 字串 SCHEME_HTTPS = https;
/* 屬性 */
/* 方法 */
公開 __construct(
    字串 $method = ?,
    字串 $module = ?,
    字串 $controller = ?,
    字串 $action = ?,
    陣列 $params = ?
)
公開 get():
公開 getCookie():
公開 getFiles():
公開 getPost():
公開 getQuery():
公開 getRequest():
/* 繼承方法 */
公開 Yaf_Request_Abstract::getEnv(字串 $name, 字串 $default = ?):
公開方法 Yaf_Request_Abstract::getParam(字串 $name, 字串 $default = ?): 混合型別
公開方法 Yaf_Request_Abstract::getServer(字串 $name, 字串 $default = ?): 無返回值
公開方法 Yaf_Request_Abstract::setActionName(字串 $action, 布林值 $format_name = true): 無返回值
公開方法 Yaf_Request_Abstract::setControllerName(字串 $controller, 布林值 $format_name = true): 無返回值
公開 Yaf_Request_Abstract::setModuleName(字串 $module, 布林值 $format_name = true): void
}

屬性

模組

控制器

動作

方法

參數

語言

_exception

_base_uri

uri

已分派

已路由

目錄

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top