|
|
| |
OpenXPKI::MooseParams(3) |
User Contributed Perl Documentation |
OpenXPKI::MooseParams(3) |
OpenXPKI::MooseParams - Wrapper around some of MooseX::Params::Validate's
functions.
Wrapper for "validated_hash" in MooseX::Params::Validate with slightly
modified behaviour:
- The first argument MUST be a class name or an instance.
- An OpenXPKI::Exception is thrown in case of errors.
Usage:
sub the_action {
my ($self, %args) = named_args(\@_,
text => { isa => 'Maybe[Str]' },
loud => { isa => 'Bool' },
);
print $args{text} if $args{loud};
}
Wrapper for "pos_validated_list" in MooseX::Params::Validate with
slightly modified behaviour:
- The first argument MUST be a class name or an instance.
- An OpenXPKI::Exception is thrown in case of errors.
Usage:
my ($self, $query, $return_rownum) = positional_args(\@_,
{ isa => 'OpenXPKI::Server::Database::Query|Str' },
{ isa => 'Bool', optional => 1, default => 0 },
);
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc. |