Why not adopt me?
NAME
Rubric::WebApp::Entries - process the /entries run method
VERSION
version 0.150
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>
COPYRIGHT AND LICENSE
This software is copyright (c) 2004 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.