RequestBase
class RequestBase extends Request (View source)
An object that represents a particular request to the Concrete-powered website. The request object then determines what is being requested, based on the path, and presents itself to the rest of the dispatcher (which loads the page, etc...).
\@package Core
Properties
protected bool | $hasCustomRequestUser | ||
protected UserInfo | $customRequestUser | ||
protected string | $customRequestDateTime | ||
static protected Request | $instance | ||
protected Page | $c |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
Determines whether a request matches a particular pattern.
Returns the full path for a request.
If no arguments are passed, returns the post array. If a key is passed, it returns the value as it exists in the post array.
No description
No description
Details
static RequestBase
getInstance()
No description
static
setInstance(Request $instance)
No description
Page
getCurrentPage()
No description
setCurrentPage(Page $c)
No description
clearCurrentPage()
No description
UserInfo
getCustomRequestUser()
No description
setCustomRequestUser(UserInfo $ui)
No description
bool
hasCustomRequestUser()
No description
string
getCustomRequestDateTime()
No description
setCustomRequestDateTime(string $date)
No description
bool
matches(string $pattern)
Determines whether a request matches a particular pattern.
string
getPath()
Returns the full path for a request.
static mixed
post(string $key = null, mixed $defaultValue = null)
If no arguments are passed, returns the post array. If a key is passed, it returns the value as it exists in the post array.
If a default value is provided and the key does not exist in the POST array, the default value is returned.
static mixed
request(string $key = null, mixed $defaultValue = null)
No description
static bool
isPost()
No description