Located in /harmoni/core/architecture/request/RequestContext.class.php (line 19)
Assigns a RequestHandler to this RequestContext object. The RequestHandler provides the bridge between the browser and the data driving requests.
Ends a namespace started previously. The last-started namespace is ended.
Ensures that $key is removed from the context-data (and not included in URLs generated later). If you pass a name like "context1/context2/name", the RequestContext uses it as a context-insensitive name (ie, you are specifying the absolute namespace).
Returns the string-value of the $key passsed. It will first check for request
data under that name, then context data. The key passed will be located within the current namespace. If you pass a name like "context1/context2/name", the RequestContext uses it as a context-insensitive name (ie, you are specifying the absolute namespace).
Returns the full contextual name of a field or variable. If passed "test", it may return something like "context1.context2.test". This function is useful when creating HTML forms.
Returns a string ("module.action" format) of the requested module and action.
Send a properly formatted location header. XHTML specifies that the ampersand character, '&' be replaced with '&'. Location headers however fail to redirect with '&'. This method properly formats location headers.
Returns a new URLWriter from the RequestHandler, assigning the module/action passed or keeping the current module/action.
Returns a new URLWriter from the RequestHandler, assigning the module/action passed or keeping the current module/action. As well, mkFullURL passes through all Request and Context data through to the resulting Url.
A quick shortcut function to get the expanded contextual name for a form field or request variable. Calls RequestContext::getName() with the passed $key.
Returns the full contextual name of a field or variable. If passed "test", it may return something like "context1.context2.test". This function is useful when creating HTML forms.
Copies the value(s) of keys passed from the request-data to the context
data. This is useful when request variables will be re-used later as contextual variables. If you pass a name like "context1/context2/name", the RequestContext uses it as a context-insensitive name (ie, you are specifying the absolute namespace). If no parameters are passed, all variables in the current namespaced are passed through.
Quickly generates a URL string from the optional passed module/action and the optional array of values to replace in the URL request data. The function can take any of the following forms:
quickURL(string $module, string $action) quickURL(string $module, string $action, array $variables) quickURL(array $variables) quickURL()
if the module/action are omitted, the last requested module/action is used.
Send the browser to the url specified. Location headers will be sent if possible, otherwise a javascript redirect will be printed outside of all output buffers
Sets $key to $value in the context-data (this data is included automatically when building new URLs). If you pass a name like "context1/context2/name", the RequestContext uses it as a context-insensitive name (ie, you are specifying the absolute namespace).
Starts a new namespace below the current namespace. This allows for the separation of context/request variables. Namespaces can be embedded, so it is important to call RequestContext::endNamespace().
Tells the RequestHandler to retrieve any request variables from the browser and updates the internal context and request data to match.
A quick shortcut function to get the value of the variable in the current context.
Calls RequestContext::get() with the passed $key.
Returns the string-value of the $key passsed. It will first check for request data under that name, then context data. The key passed will be located within the current namespace. If you pass a name like "context1/context2/name", the RequestContext uses it as a context-insensitive name (ie, you are specifying the absolute namespace).
Documentation generated on Wed, 19 Sep 2007 10:26:04 -0400 by phpDocumentor 1.3.0RC3