The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Rubric::WebApp::Entries - process the /entries run method

VERSION

version 0.147

DESCRIPTION

Rubric::WebApp::Entries implements a URI parser that builds a query based on a query URI, passes it to Rubric::Entries, and returns the rendered report on the results.

METHODS

entries($webapp)

This method is called by Rubric::WebApp. It returns the rendered template for return to the user's browser.

describe_query(\%arg)

returns a human-readable description of the query described by %args

get_arg($param => $value)

Given a name/value pair from the path, this method will attempt to generate part of hash to send to << Rubric::Entry->query >>. To do this, it looks for and calls a method called "arg_for_NAME" where NAME is the passed value of $param. If no clause can be generated, it returns undef.

arg_for_NAME

Each of these functions returns the proper value to put in the hash passed to Rubric::Entries->query. If given an invalid argument, they will return undef.

arg_for_user($username)

Given a username, this method returns the associated Rubric::User object.

arg_for_tags($tagstring)

arg_for_exact_tags($tagstring)

Given "happy fuzzy bunnies" this returns [ qw(happy fuzzy bunnies) ]

arg_for_desc_like

arg_for_body_like

arg_for_like

arg_for_has_body($bool)

Returns the given boolean as 0 or 1.

arg_for_has_link($bool)

Returns the given boolean as 0 or 1.

arg_for_first_only($bool)

Returns the given boolean as 0 or 1.

arg_for_urimd5($md5sum)

This method returns the passed value, if that value is a valid 32-character md5sum.

arg_for_{timefield}_{preposition}($datetime)

These methods correspond to those described in Rubric::Entry::Query.

They return the passed string unchanged.

AUTHOR

Ricardo SIGNES, <rjbs@cpan.org>

BUGS

Please report any bugs or feature requests to bug-rubric@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT

Copyright 2004 Ricardo SIGNES. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.