Maxscape::CGI Package
Synopsis
use Maxscape::HTTP::CGI;
Description
The Maxscape Maxscape::CGI package supplies the basic functionality to deal with
the CGI environment, provided by the CGI 'QUERY_STRING' and other variables.
Applications don't need to touch this module they use the $CGI object provided
by the run-time system.
If you like the CGI.pm or other modules to handle e.g. forms, you may include
them via the application plugin (use CGI.pm;). This should not interfere with
this module and may freely be intermixed.
Examples
my $CGI = $self->{Context}->{CGI};
my $myCGIParameter = $CGI->Query ('myParameter');
if ($CGI->Query ('myParameter')) {
...
}
List of Member Functions
Member Functions
new
Synopsis
$CGI = Maxscape::HTTP::CGI->new (Request => $Request);
Description
Creates a Maxscape::HTTP::CGI object.
createCGIEnvironment
Synopsis
$CGI->createCGIEnvironment($GatewayInterface, $HTTPD, $Client, $Request,
$ScriptName);
Description
Creates the CGI environment for the CGI, FCGI and DCGI common gateway interfaces.
getQueryString
Synopsis
$CGI->getQueryString ($QueryString);
Description
Returns and stores the values of a request's query string.
Query
Synopsis
my $Parameter = $CGI->Query ('myParameter');
Description
Returns and stores the values of a request's query string.
Returns the value of the taken member function parameter. If the parameter
is not found, returns 'undef'.
The Query('myParameter') member function returns the value(s) of the
given key. If invoked in a list context, the function returns the entire list.
Otherwise it returns the first element of the list.
| Next ∙ Previous ∙ Top ∙ Join ∙ Contact | © Maxscape |
