Apache::Command - Perl API for accessing Apache module command information |
Apache::Command - Perl API for accessing Apache module command information
use Apache::Module (); use Apache::Command (); my $module = Apache::Module::find_linked_module('mod_perl.c'); my $cmd = $module->cmds();
while ($cmd) { $cmd->args_how(); $cmd->errmsg(); $cmd->req_override(); $cmd = $cmd->next(); }
Each Apache module can define a list of configuration commands it
offers. This interface gives access to information about these
configuration commands. Each module contains a chained-list of
Apache::Command
objects, each representing a single directive.
For example, PerlRequire
is a command offered by mod_perl.
Apache::Command
provides the following functions and/or methods:
args_how
What the command expects as arguments
$obj->args_how();
$obj
( Apache::Command object|docs::2.0::api::Apache::Command
)
errmsg
'usage' message for that command, in case of syntax errors
$obj->errmsg();
$obj
( Apache::Command object|docs::2.0::api::Apache::Command
)
name
Name of this command
$name = $obj->name();
$obj
( Apache::Command object|docs::2.0::api::Apache::Command
)
next
The next command in the chain of commands for this module
$ret = $cmd->next();
$cmd
( Apache::Command object|docs::2.0::api::Apache::Command
)$ret
( Apache::Command object|docs::2.0::api::Apache::Command
)
req_override
What overrides need to be allowed to enable this command.
$obj->req_override
$obj
( Apache::Command object|docs::2.0::api::Apache::Command
)
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
The mod_perl development team and numerous contributors.
Apache::Command - Perl API for accessing Apache module command information |