Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9452d6b8

Von Sven Schöling vor etwa 2 Jahren hinzugefügt

  • ID 9452d6b86ead9834bfb12c0a3a0a00af9b13f11c
  • Vorgänger dbf2d709
  • Nachfolger 9dab1c5c

RecordLink: doc fixes

Unterschiede anzeigen:

SL/DB/Helper/RecordLink.pm
=head1 SYNOPSIS
# in the consuming class
__PCAKAGE__->after_save_hook("link_records_hook");
__PACKAGE__->after_save_hook("link_records_hook");
sub link_records_hook {
my ($self) = @_;
SL::DB::Helper::RecordLink::link_records(
$self,
qw(SL::DB::Order), # list of allowed record sources
qw(SL::DB::OrderItem), # list of allowed record item sources
[ qw(SL::DB::Order) ], # list of allowed record sources
[ qw(SL::DB::OrderItem) ], # list of allowed record item sources
close_source_quotations => 1, # if the link source is a quotation - close it
)
}
......
The older C<converted_from_oe_ids> etc forms can be converted with TODO
=head1 METHODS
=head1 FUNCTIONS
=over 4
......
Item ids will be assigned one by one to sorted_items.
This function can be exported on demand to the calling package.
=item * C<link_records> $record, \@allowed_record_types, \@allowed_item_types
Intended as a post-save hook.
......
=back
=head1 CONSTANTS
Aöll of these can be exported on demand if the calling code wants to set or read the markers in a record manually.
=over 4
=item * C<RECORD_ID> = C<converted_from_record_id>
=item * C<RECORD_TYPE_REF> = C<converted_from_record_type_ref>
=item * C<RECORD_ITEM_ID> = C<converted_from_record_item_id>
=item * C<RECORD_ITEM_TYPE_REF> = C<converted_from_record_item_type_ref>
=back
=head1 BUGS
None yet. :)

Auch abrufbar als: Unified diff