use vars qw/@ISA/;
@ISA = qw/BSE::TB::Article/;
-our $VERSION = "1.006";
+our $VERSION = "1.007";
# subscription_usage values
use constant SUBUSAGE_START_ONLY => 1;
sub get_custom { undef }
+sub get_custom_all { +{} }
+
1;
use strict;
use parent 'Squirrel::Row', 'BSE::CustomData';
-our $VERSION = "1.002";
+our $VERSION = "1.003";
sub columns {
return qw/id product_id name type global_ref display_order enabled default_value custom_data/;
my $result = $self->SUPER::data_only;
$result->{values} = [ map $_->data_only, $self->values ];
+ $result->{get_custom_all} = $self->get_custom_all || {};
return $result;
}
use strict;
use parent "Squirrel::Row", "BSE::CustomData";
-our $VERSION = "1.001";
+our $VERSION = "1.002";
sub columns {
return qw/id product_option_id value display_order custom_data/;
return BSE::TB::ProductOptions->getByPkey($self->{product_option_id});
}
+sub data_only {
+ my ($self) = @_;
+
+ my $result = $self->SUPER::data_only;
+ $result->{get_custom_all} = $self->get_custom_all;
+
+ $result;
+}
+
1;