Lines 34-42
Koha::Patron::Attribute::Types Object set class
Link Here
|
34 |
|
34 |
|
35 |
=head3 patron_attributes_form |
35 |
=head3 patron_attributes_form |
36 |
|
36 |
|
37 |
my $patron_attributes_form = Koha::Patron::Attribute::Types::patron_attributes_form |
37 |
$patron_attributes_form = Koha::Patron::Attribute::Types::patron_attributes_form($template, $attributes, $op); |
38 |
|
38 |
|
39 |
Static method that returns patron attribute types to be rendered in a form |
39 |
Static method that prepares and populates the template with patron attribute types for rendering in a form. It organizes the attributes into a structure based on their class and type, taking into account repeatable and mandatory attributes, as well as those with authorized value categories. It also handles library-specific attribute type limitations and sets relevant template parameters for display. |
|
|
40 |
|
41 |
Params: |
42 |
$template - The template object to be populated with patron attributes. |
43 |
$attributes - Arrayref of hashrefs containing patron attribute data. |
44 |
$op - Operation type, such as 'duplicate', used to handle unique attributes. |
40 |
|
45 |
|
41 |
=cut |
46 |
=cut |
42 |
|
47 |
|
43 |
- |
|
|