|
NAMEApache2::Command - Perl API for accessing Apache module command information Synopsis use Apache2::Module ();
use Apache2::Command ();
my $module = Apache2::Module::find_linked_module('mod_perl.c');
for (my $cmd = $module->cmds; $cmd; $cmd = $cmd->next) {
$cmd->args_how();
$cmd->errmsg();
$cmd->name();
$cmd->req_override();
}
Description"Apache2::Command" provides the Perl API for accessing Apache module command information API"Apache2::Command" provides the following functions and/or methods: "args_how"What the command expects as arguments: $how = $cmd->args_how();
"errmsg"Get usage message for that command, in case of syntax errors: $error = $cmd->errmsg();
"name"Get the name of this command: $name = $cmd->name();
"next"Get the next command in the chain of commands for this module: $next = $cmd->next();
"req_override"What overrides need to be allowed to enable this command: $override = $cmd->req_override
For example: use Apache2::Const -compile => qw(:override); $cmd->req_override() & Apache2::Const::OR_AUTHCFG; $cmd->req_override() & Apache2::Const::OR_LIMIT; See Alsomod_perl 2.0 documentation. Copyrightmod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. AuthorsThe mod_perl development team and numerous contributors.
|