php8.5
Home/ Manual/ reference / yaf/ The Yaf_Request_Abstract class

The Yaf_Request_Abstract class

Yaf_Request_Abstract is the base class of the request objects. It encapsulates the request environment: the module, controller and action resolved by routing, the request parameters, and accessors for the superglobals (query string, POST, cookie, server, environment and uploaded files).

Intro

Yaf_Request_Abstract is the base class of the request objects. It encapsulates the request environment: the module, controller and action resolved by routing, the request parameters, and accessors for the superglobals (query string, POST, cookie, server, environment and uploaded files).

Two concrete implementations are provided: Yaf_Request_Http, initialized from an actual web request, and Yaf_Request_Simple, a synthetic request used in tests and CLI scripts.

Class synopsis

class Yaf_Request_Abstract { }

Properties

module
controller
action
method
params
language
_exception
_base_uri
uri
dispatched
routed

Predefined Constants

Yaf_Request_Abstract::SCHEME_HTTP
Yaf_Request_Abstract::SCHEME_HTTPS

Yaf-request-abstract

Source: reference/yaf/yaf-request-abstract.xml · from the official PHP manual (php/doc-en)