Lines 598-603
For example, for holds, _type should return 'Reserve'.
Link Here
|
598 |
|
598 |
|
599 |
sub _type { } |
599 |
sub _type { } |
600 |
|
600 |
|
|
|
601 |
=head3 _polymorphic_field |
602 |
|
603 |
sub _polymorphic_field { |
604 |
return 'transport'; |
605 |
} |
606 |
The _polymorphic_field method must be set for all child classes that implement |
607 |
their own polymorphic children. |
608 |
|
609 |
It should return the field name that distinguishes the classes. |
610 |
|
611 |
=cut |
612 |
|
613 |
=head3 _polymorphic_map |
614 |
|
615 |
sub _polymorphic_map { |
616 |
return { |
617 |
sftp => 'Koha::File::Transport::SFTP', |
618 |
ftp => 'Koha::File::Transport::FTP', |
619 |
}; |
620 |
} |
621 |
|
622 |
The _polymorphic_map method must be implemented by all child classes that implement |
623 |
their own polymorphic children. |
624 |
|
625 |
It should return a simple hashmap mapping for field value to class name for the |
626 |
polymorphic class using the value from the _polymorphic_field defined above. |
627 |
|
628 |
=cut |
629 |
|
601 |
=head3 object_class |
630 |
=head3 object_class |
602 |
|
631 |
|
603 |
This method must be set for all child classes. |
632 |
This method must be set for all child classes. |
604 |
- |
|
|