From 6cfd569189eaa0a3e8cf4d8afd7cbf2e3ca5377a Mon Sep 17 00:00:00 2001 From: David Baird Date: Wed, 12 Oct 2005 01:51:07 +0000 Subject: [PATCH] Rearranged pod for new methods git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@400 48953598-375a-da11-a14b-00016c27c3ee --- lib/Maypole.pm | 61 ++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 14260bd..34446a2 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -356,28 +356,6 @@ sub parse_path $self->args(\@pi); } -=head3 make_path( %args or \%args or @args ) - -This is the counterpart to C. It generates a path to use -in links, form actions etc. To implement your own path scheme, just override -this method and C. - - %args = ( table => $table, - action => $action, - additional => $additional, # optional - generally an object ID - ); - - \%args = as above, but a ref - - @args = ( $table, $action, $additional ); # $additional is optional - -C can be used as an alternative key to C. - -C<$additional> can be a string, an arrayref, or a hashref. An arrayref is -expanded into extra path elements, whereas a hashref is translated into a query -string. - -=cut sub make_path { @@ -417,16 +395,6 @@ sub make_path return $uri->as_string; } -=head3 make_uri( @segments ) - -Make a L object given table, action etc. Automatically adds -the C. - -If the final element in C<@segments> is a hash ref, C will render it -as a query string. - -=cut - sub make_uri { my ($r, @segments) = @_; @@ -575,6 +543,35 @@ Returns the request path Parses the request path and sets the C, C and C properties +=head3 make_path( %args or \%args or @args ) + +This is the counterpart to C. It generates a path to use +in links, form actions etc. To implement your own path scheme, just override +this method and C. + + %args = ( table => $table, + action => $action, + additional => $additional, # optional - generally an object ID + ); + + \%args = as above, but a ref + + @args = ( $table, $action, $additional ); # $additional is optional + +C can be used as an alternative key to C. + +C<$additional> can be a string, an arrayref, or a hashref. An arrayref is +expanded into extra path elements, whereas a hashref is translated into a query +string. + +=head3 make_uri( @segments ) + +Make a L object given table, action etc. Automatically adds +the C. + +If the final element in C<@segments> is a hash ref, C will render it +as a query string. + =head3 table The table part of the Maypole request path -- 2.39.5