Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 98121947

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

  • ID 98121947e48aca4de13900603b20a6138125b9a8
  • Vorgänger 08fe8308
  • Nachfolger 8b2bb114

RecordLink: doc fixes

Unterschiede anzeigen:

SL/DB/Helper/RecordLink.pm
107 107
=head1 SYNOPSIS
108 108

  
109 109
    # in the consuming class
110
    __PCAKAGE__->after_save_hook("link_records_hook");
110
    __PACKAGE__->after_save_hook("link_records_hook");
111 111

  
112 112
    sub link_records_hook {
113 113
      my ($self) = @_;
114 114
      SL::DB::Helper::RecordLink::link_records(
115 115
        $self,
116
        qw(SL::DB::Order),            # list of allowed record sources
117
        qw(SL::DB::OrderItem),        # list of allowed record item sources
116
        [ qw(SL::DB::Order) ],        # list of allowed record sources
117
        [ qw(SL::DB::OrderItem) ],    # list of allowed record item sources
118 118
        close_source_quotations => 1, # if the link source is a quotation - close it
119 119
      )
120 120
    }
......
153 153

  
154 154
The older C<converted_from_oe_ids> etc forms can be converted with TODO
155 155

  
156
=head1 METHODS
156
=head1 FUNCTIONS
157 157

  
158 158
=over 4
159 159

  
......
163 163

  
164 164
Item ids will be assigned one by one to sorted_items.
165 165

  
166
This function can be exported on demand to the calling package.
167

  
166 168
=item * C<link_records> $record, \@allowed_record_types, \@allowed_item_types
167 169

  
168 170
Intended as a post-save hook.
......
171 173

  
172 174
=back
173 175

  
176
=head1 CONSTANTS
177

  
178
Aöll of these can be exported on demand if the calling code wants to set or read the markers in a record manually.
179

  
180
=over 4
181

  
182
=item * C<RECORD_ID> = C<converted_from_record_id>
183

  
184
=item * C<RECORD_TYPE_REF> = C<converted_from_record_type_ref>
185

  
186
=item * C<RECORD_ITEM_ID> = C<converted_from_record_item_id>
187

  
188
=item * C<RECORD_ITEM_TYPE_REF> = C<converted_from_record_item_type_ref>
189

  
190
=back
191

  
174 192
=head1 BUGS
175 193

  
176 194
None yet. :)

Auch abrufbar als: Unified diff