return $self->$unfilter($value);
}
-sub get_filtered_column {
+sub get_value {
my ($self, $col) = @_;
$self->throw_exception("$col is not a filtered column")
return $self->{_filtered_column}{$col} = $self->_filtered_column($col, $val);
}
-sub set_filtered_column {
+sub set_value {
my ($self, $col, $filtered) = @_;
$self->set_column($col, $self->_unfiltered_column($col, $filtered));
return $filtered;
}
-sub get_column {
- my ($self, $column) = @_;
-
- if (exists $self->{_filtered_column}{$column}) {
- return $self->store_column($column,
- $self->_unfiltered_column($column, $self->{_filtered_column}{$column}));
+sub register_column {
+ my ($class, $col, $info) = @_;
+ my $acc = $col;
+ if (exists $info->{accessor}) {
+ return unless defined $info->{accessor};
+ $acc = [ $info->{accessor}, $col ];
+ }
+ if ( exists $self->column_info($col)->{_filter_info} ) {
+ $class->mk_group_accessors(value => $acc);
+ } else {
+ $class->mk_group_accessors(column => $acc);
}
-
- return $self->next::method($column);
}
1;