Revision 66022cbd
Von Sven Schöling vor fast 15 Jahren hinzugefügt
SL/CVar.pm | ||
---|---|---|
606 | 606 |
return ($date_fields, $number_fields); |
607 | 607 |
} |
608 | 608 |
|
609 |
=head2 VALIDITY |
|
610 |
|
|
611 |
Suppose the following scenario: |
|
612 |
|
|
613 |
You have a lot of parts in your database, and a set of properties cofigured. Now not every part has every of these properties, some combinations will just make no sense. In order to clean up your inputs a bit, you want to mark certain combinations as invalid, blocking them from modification and possibly display. |
|
614 |
|
|
615 |
Validity is assumed. If you modify validity, you actually save B<invalidity>. |
|
616 |
iNvalidity is saved as a function of config_id, and the trans_id |
|
617 |
|
|
618 |
In the naive way, disable an attribute for a specific id (simple) |
|
619 |
|
|
620 |
=cut |
|
621 | 609 |
sub save_custom_variables_validity { |
622 | 610 |
$main::lxdebug->enter_sub(); |
623 | 611 |
|
... | ... | |
683 | 671 |
} |
684 | 672 |
|
685 | 673 |
1; |
674 |
|
|
675 |
__END__ |
|
676 |
|
|
677 |
=head1 NAME |
|
678 |
|
|
679 |
SL::CVar.pm - Custom Variables module |
|
680 |
|
|
681 |
=head1 SYNOPSIS |
|
682 |
|
|
683 |
# dealing with configs |
|
684 |
|
|
685 |
my $all_configs = CVar->get_configs() |
|
686 |
my $config = CVar->get_config(id => '1234') |
|
687 |
|
|
688 |
CVar->save_config($config); |
|
689 |
CVar->delete->config($config) |
|
690 |
|
|
691 |
# dealing with custom vars |
|
692 |
|
|
693 |
CVar->get_custom_variables(module => 'ic') |
|
694 |
|
|
695 |
=head2 VALIDITY |
|
696 |
|
|
697 |
Suppose the following scenario: |
|
698 |
|
|
699 |
You have a lot of parts in your database, and a set of properties cofigured. Now not every part has every of these properties, some combinations will just make no sense. In order to clean up your inputs a bit, you want to mark certain combinations as invalid, blocking them from modification and possibly display. |
|
700 |
|
|
701 |
Validity is assumed. If you modify validity, you actually save B<invalidity>. |
|
702 |
Invalidity is saved as a function of config_id, and the trans_id |
|
703 |
|
|
704 |
In the naive way, disable an attribute for a specific id (simple) |
|
705 |
|
|
706 |
=cut |
Auch abrufbar als: Unified diff
Dokumentation einheitlich in den Footer verschoben, Datei mit END abgeschlossen (beschleunigt parsen), und POD Fehler gefixt.