|
P5EEx-Blue-0.01 | |||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||
![]() |
P5EEx::Blue::Request |
P5EEx::Blue::Request - the request
# ... official way to get a Request object ... use P5EEx::Blue::P5EE; $context = P5EEx::Blue::P5EE->context(); $request = $context->request(); # get the request
# ... alternative way (used internally) ... use P5EEx::Blue::Request; $request = P5EEx::Blue::Request->new();
A Request class ...
The following classes might be a part of the Request Class Group.
new()The P5EEx::Blue::Request->new() method is rarely called directly.
That is because the current request is usually accessed through the
$context object.
* Signature: $request = P5EEx::Blue::Request->new($context, $named);
* Return: $request P5EEx::Blue::Request
* Throws: P5EEx::Blue::Exception
* Since: 0.01
Sample Usage:
$request = P5EEx::Blue::Request->new();
The following methods are intended to be called by subclasses of the current class (or environmental, ``main'' code).
init()The init() method is called from within the standard Request constructor.
The init() method in this class does nothing.
It allows subclasses of the Request to customize the behavior of the
constructor by overriding the init() method.
* Signature: $request->init()
* Param: void
* Return: void
* Throws: P5EEx::Blue::Exception
* Since: 0.01
Sample Usage:
$request->init();
user()The user() method returns the username of the authenticated user.
The special name, ``guest'', refers to the unauthenticated (anonymous) user.
* Signature: $username = $request->user();
* Param: void
* Return: string
* Throws: <none>
* Since: 0.01
Sample Usage:
$username = $request->user();