class Request extends RequestBase (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 from RequestBase
protected UserInfo $customRequestUser from RequestBase
protected string $customRequestDateTime from RequestBase
static protected Request $instance from RequestBase
protected Page $c from RequestBase

Methods

static RequestBase
getInstance()

No description

static 
setInstance(Request $instance)

No description

getCurrentPage()

No description

setCurrentPage(Page $c)

No description

clearCurrentPage()

No description

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.

static mixed
request(string $key = null, mixed $defaultValue = null)

No description

static bool
isPost()

No description

Details

static RequestBase getInstance()

Return Value

RequestBase

static setInstance(Request $instance)

Parameters

Request $instance

Page getCurrentPage()

Return Value

Page

setCurrentPage(Page $c)

Parameters

Page $c

clearCurrentPage()

UserInfo getCustomRequestUser()

Return Value

UserInfo

setCustomRequestUser(UserInfo $ui)

Parameters

UserInfo $ui

bool hasCustomRequestUser()

Return Value

bool

string getCustomRequestDateTime()

Return Value

string

setCustomRequestDateTime(string $date)

Parameters

string $date

bool matches(string $pattern)

Determines whether a request matches a particular pattern.

Parameters

string $pattern

Return Value

bool

string getPath()

Returns the full path for a request.

Return Value

string

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.

Parameters

string $key
mixed $defaultValue

Return Value

mixed

static mixed request(string $key = null, mixed $defaultValue = null)

Parameters

string $key
mixed $defaultValue

Return Value

mixed

static bool isPost()

Return Value

bool