-
document.html
231 232 104 104 } elsif ( ($class) && (length($class)>0) && (! ref($document)) ) { 105 105 $document = new $class ($keeper); 106 106 $new = 1; 107 my @properties = $document->structure(); 108 foreach my $prop ( @properties ) { 109 my $attr = $prop->{attr}; 110 ### !!! Если не стандартная переменная, то можем инициализировать 111 if ( exists $ARGS{$attr} && ! grep { $prop->{attr} eq $_ } qw( class sect_id id delete save clone s_alias activate deactivate p s use_section alpha alpha_search search_by search ) ) { 112 $document->$attr($ARGS{$attr}); 107 unless ( $save ) { 108 my @properties = $document->structure(); 109 foreach my $prop ( @properties ) { 110 my $attr = $prop->{attr}; 111 ### !!! Если не стандартная переменная, то можем инициализировать 112 if ( exists $ARGS{$attr} && ! grep { $prop->{attr} eq $_ } qw( class sect_id id delete save clone s_alias activate deactivate p s use_section alpha alpha_search search_by search ) ) { 113 $document->$attr($ARGS{$attr}); 114 } 113 115 } 114 116 } 115 117 }