Useful when you have different section types, and you want to have
separate update API methods.
+ my ($class, $single_class) = @_;
my $pdata = $class->private();
my $propertyList = $pdata->{propertyList};
my $pdata = $class->private();
my $propertyList = $pdata->{propertyList};
+ my $filter_type = $class->type() if $single_class;
+
foreach my $p (keys %$propertyList) {
next if $p eq 'type';
foreach my $p (keys %$propertyList) {
next if $p eq 'type';
+
+ my $copts = $class->options();
+
+ next if defined($filter_type) && !defined($copts->{$p});
+
if (!$propertyList->{$p}->{optional}) {
$props->{$p} = $propertyList->{$p};
next;
if (!$propertyList->{$p}->{optional}) {
$props->{$p} = $propertyList->{$p};
next;
- my $copts = $class->options();
$modifyable = 1 if defined($copts->{$p}) && !$copts->{$p}->{fixed};
foreach my $t (keys %$plugins) {
$modifyable = 1 if defined($copts->{$p}) && !$copts->{$p}->{fixed};
foreach my $t (keys %$plugins) {