}
}
+=head2 check_params
+
+ Checks parameters against the DFV profile for the class, returns the results
+ of DFV's check.
+
+ my $dfv_results = __PACKAGE__->check_params($r->params);
+
+=cut
+
+sub check_params {
+ my ($class,$params) = @_;
+ return Data::FormValidator->check($params, $class->dfv_profile);
+}
+
+
=head1 Action Methods
Action methods are methods that are accessed through web (or other public) interface.
return;
}
- my $required_cols = $class->required_columns;
my $errors;
if ($obj) {
($obj,$errors) = $class->_do_update($r,$obj);
# get related object if it exists
my $rel_meta = $class->related_meta('r',$accssr);
if (!$rel_meta) {
- $class->_croak("No relationship for $accssr in " . ref($class));
+ $class->_carp("No relationship for $accssr in " . ref($class));
+ next;
}
my $rel_type = $rel_meta->{name};
my $created = [];
my $rel_meta = $self->related_meta('r',$accssr);
if (!$rel_meta) {
- $self->_croak("No relationship for $accssr in " . ref($self));
+ $self->_carp("No relationship for $accssr in " . ref($self));
+ return;
}
my $rel_type = $rel_meta->{name};