Lines 678-684
sub to_api_mapping {
Link Here
|
678 |
|
678 |
|
679 |
=head3 strings_map |
679 |
=head3 strings_map |
680 |
|
680 |
|
681 |
my $params = { is_public => 1 }; |
|
|
682 |
my $string_map = $object->strings_map($params); |
681 |
my $string_map = $object->strings_map($params); |
683 |
|
682 |
|
684 |
Generic method that returns the string map for coded attributes. |
683 |
Generic method that returns the string map for coded attributes. |
Lines 686-692
Generic method that returns the string map for coded attributes.
Link Here
|
686 |
Return should be a hashref keyed on database field name with the values |
685 |
Return should be a hashref keyed on database field name with the values |
687 |
being hashrefs containing 'str', 'type' and optionally 'category'. |
686 |
being hashrefs containing 'str', 'type' and optionally 'category'. |
688 |
|
687 |
|
689 |
This is then use in to_api to render the _strings embed when requested. |
688 |
This is then used in to_api to render the _strings embed when requested. |
690 |
|
689 |
|
691 |
Note: this only returns an empty I<hashref>. Each class should have its |
690 |
Note: this only returns an empty I<hashref>. Each class should have its |
692 |
own mapping returned. |
691 |
own mapping returned. |
693 |
- |
|
|