LemonStand Documentation

Phpr_Request

The Phpr_Request class represents the HTTP request information. You can use this class for reading GET or POT values from the request, loading the cookie information, obtaining the visitor IP address, etc.

Class methods

  • post($name, $default = null) - returns a POST value by its name. The optional second parameter allows to specify a default value. The post() function provides a simpler access to this method.
  • cookie($name) - returns a cookie variable value by its name. If the cookie with the specified name does not exist, returns null.
  • getUserIp() - returns the visitor's IP address
  • getField($name, $default = null) - returns a GET value by its name. The optional second parameter allows to specify a default value.

Class fields

    $get_fields - an array, contains a list of all GET variables.

Next: Core_CacheBase
Previous: Shop_ProductBundleItem
Return to Reference