Methods

All methods in the Solar_Request class.

Public

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

argv()

Retrieves an unfiltered value by key from the $argv property, or an alternate default value if that key does not exist.

cookie()

Retrieves an unfiltered value by key from the $cookie property, or an alternate default value if that key does not exist.

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

env()

Retrieves an unfiltered value by key from the $env property, or an alternate default value if that key does not exist.

files()

Retrieves an unfiltered value by key from the $files property, or an alternate default value if that key does not exist.

get()

Retrieves an unfiltered value by key from the $get property, or an alternate default value if that key does not exist.

http()

Retrieves an unfiltered value by key from the $http property, or an alternate default value if that key does not exist.

isCli()

Is this a command-line request?

isCsrf()

Is the current request a cross-site forgery?

isDelete()

Is this a 'DELETE' request?

isGap()

Is this a GET-after-POST request?

isGet()

Is this a 'GET' request?

isPost()

Is this a 'POST' request?

isPut()

Is this a 'PUT' request?

isSsl()

Is this a secure SSL request?

isXhr()

Is this an XmlHttpRequest?

locale()

Looks up class-specific locale strings based on a key.

post()

Retrieves an unfiltered value by key from the $post property, or an alternate default value if that key does not exist.

postAndFiles()

Retrieves an unfiltered value by key from the $post and $files properties, or an alternate default value if that key does not exist in either location.

reset()

Reloads properties from the superglobal arrays.

server()

Retrieves an unfiltered value by key from the $server property, or an alternate default value if that key does not exist.

Protected

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_getValue()

Common method to get a request value and return it.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

_rebuildFiles()

Recursive method to rebuild $_FILES structure to be more like $_POST.

Private

None.



Local