SRequestRequest class
Located in /controller/lib/request.php (line 9)
| $action | Returns the requested action name |
| $controller | Returns the requested controller name |
| $params |
Holds both GET and POST parameters in a single array. Uploaded files are held in an instance of SUpload class |
__construct
()
host
()
Returns the host for this request
host_with_port
()
Returns a host:port string for this request
is_get
()
Is this a GET request ?
is_post
()
Is this a POST request ?
is_ssl
()
Is this an SSL request ?
is_xhr
()
Alias for is_xml_http_request()
is_xml_http_request
()
Returns true if the request's "X-Requested-With" header contains "XMLHttpRequest".
(The Prototype Javascript library sends this header with every Ajax request.)
method
()
Returns the HTTP request method
port
()
Returns the port number of this request
port_string
()
Returns a port suffix like ":8080" if the port number of this request is not the default HTTP port 80 or HTTPS port 443
protocol
()
Return 'https://' if this is an SSL request and 'http://' otherwise
raw_post_data
()
Returns the raw post data
relative_url_root
()
Returns the path minus the web server relative installation directory
remote_ip
()
Determine originating IP address, using REMOTE_ADDR header
request_uri
()
Return the request URI
standard_port
()
Returns the standard port number for this request's protocol
Documentation generated on Wed, 24 Jan 2007 14:54:52 +0100 by phpDocumentor 1.3.0RC4