Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6ec94844

Von Sven Schöling vor mehr als 1 Jahr hinzugefügt

  • ID 6ec948444a3dd5d4105be4f90657c2d1f40f7041
  • Vorgänger cfb00178
  • Nachfolger 2feef8bc

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