SloodleRequestHandles incoming HTTP requests, typically from LSL if dealing with Second Life.
This class will perform much of the complex and repetitive processing required for handling HTTP requests.
Located in /lib/io.php (line 770)
bool
$request_data_processed
= false (line 790)
Indicates whether or not the basic request data has already been processed.
This is used to ensure data is processed.
object
$_session
= null (line 782)
Reference to the containing SloodleSession object.
If null, then this module is being used outwith the framework. Always check the status of the variable before using it! Note: if not provided, then this object will not render any response information.
Constructor
If the session parameter is null, then this object simply does not render response information.
Fetches the avatar name request parameter.
Fetches the avatar UUID request parameter.
Fetches the controller ID request parameter.
Fetches the course ID request parameter.
Get a course module instance for the module specified in the request Uses the ID specified in $module_id.
Gets a database record for the course identified in the request.
(Note: this function does not check whether or not the user is enrolled in the course)
Fetches the module ID request parameter.
Obtains a named HTTP request parameter, optionally requiring it or not
Fetches the password request parameter.
Fetches the request descriptor request parameter.
Fetches the server access level parameter, if specified.
Checks the parameters to determine if the request relates to an object rather than a user
Checks whether or not the request data has already been processed.
Obtains a named HTTP request parameter, or NULL if it has not been provided.
Return values are always strings.
Process all of the standard data provided by the HTTP request, and write it into our SloodleSession object.
Requires that a SloodleSession object was provided at construction, and is stored in the $_session member. NOTE: this does not load the module part of the session. That must be done separately, using the SloodleSession::load_module() member function.
Obtains a named HTTP request parameter, or terminates with an error message if it has not been provided.
Note: for linker scripts, this should *always* be used instead of the standard Moodle function, as this will render appropriately formatted error messages, which scripts can understand. Also note that this function always returned values in the string type. They must be cast.
Documentation generated on Fri, 17 Jul 2009 11:01:26 +0100 by phpDocumentor 1.4.0