use Maypole::Config;
use Maypole::Constants;
use Maypole::Headers;
-use Maypole::Components;
use URI();
use URI::QueryParam;
use NEXT;
return $status;
}
-=back
-
-=head2 component
+=item component
- Run Maypole sub-requests as components using L<Maypole::Components>
+ Run Maypole sub-requests as a component of the request
[% request.component("/beer/view_as_component/20") %]
}
+=head2 delete
+
+Deprecated method that calls do_delete or a given classes delete method, please
+use do_delete instead
+
=head2 do_delete
Unsuprisingly, this command causes a database record to be forever lost.
$self->list($r);
}
+=head2 search
+
+Deprecated searching method - use do_search instead.
=head2 do_search
return $r->config->loader->_table2class($table); # why not find_class ?
}
+=head2 fetch_objects
+
+Returns 1 or more objects of the given class when provided with the request
+
+=cut
+
sub fetch_objects {
my ($class, $r)=@_;
my @pcs = $class->primary_columns;
__PACKAGE__->has_a('beer', 'BeerDB::Beer');
package BeerDB::Drinker;
__PACKAGE__->has_many('pints', 'BeerDB::Pint');
-
+
# NEED to do mapping
my $sel = BeerDB::Drinker->to_field('pints', 'select') # multiple
my $sel = $Drunk->to_field('pints', 'select'); # Already had beers selected
- # Random uses
-
+ # Random uses
=head1 DESCRIPTION
=cut
-# TODO -- use search_columns
+# TODO -- use search_columns
+
sub search_inputs {
my ($class, $r) = @_;
warn "In model search_inputs " if $class->model_debug;
}
+=head2 a_select_box
+
+ Returns a HTML::Element representing a select box, based on the arguments
+
+=cut
+
# make a select box from args
sub a_select_box {
my ($self, $name, $vals, $selected_val, $contents) = @_;
Processes the template and sets the output. See L<Maypole::View::Base>
+=item report_error
+
+Reports the details of an error, current state and parameters
+
=back
=head1 TEMPLATE TOOLKIT INTRODUCTION